[MPlayer-users] Unplayable H264 video (Crosspost - ffmpeg-user)
    Carl Eugen Hoyos 
    cehoyos at ag.or.at
       
    Sat Oct 30 03:17:26 CEST 2010
    
    
  
Navjot Kukreja <navjotk <at> gmail.com> writes:
> The problem is that the hardware is completely unmarked. There is no
> manufacturer information on the hardware/manual/software. The choice of
> hardware is not mine.
So could you post the first 16 bytes of several (different) of your files?
The following (inlined) should improve your experience, but I believe it needs
to be more restrictive to be acceptable.
hexdump -C E-20100925-233415.mp4 |head -n1
Carl Eugen
Index: libavformat/h264dec.c
===================================================================
--- libavformat/h264dec.c       (Revision 25603)
+++ libavformat/h264dec.c       (Arbeitskopie)
@@ -21,6 +21,7 @@
 #include "avformat.h"
 #include "rawdec.h"
+#include "libavutil/intreadwrite.h"
 static int h264_probe(AVProbeData *p)
 {
@@ -28,6 +29,9 @@
     int sps=0, pps=0, idr=0, res=0, sli=0;
     int i;
+    if (AV_RL32(p->buf+4) == MKTAG('M', 'P', 'G', '4'))
+        return AVPROBE_SCORE_MAX/4;
+
     for(i=0; i<p->buf_size; i++){
         code = (code<<8) + p->buf[i];
         if ((code & 0xffffff00) == 0x100) {
    
    
More information about the MPlayer-users
mailing list