[MPlayer-dev-eng] [RFC] h264 ES parser problems

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Thu Sep 15 17:24:58 CEST 2005


Hi,
this file does not play right unless you use -demuxer lavf:
http://stud4.tuwien.ac.at/~e0326863/ats/bbc-sample_small.mpg
I mostly tracked down the place of the bug, but I don't know the right
fix.
The attached patch makes this file play, but might break lots of others.
If you know the right fix, please send a patch (or fix right away).

Greetings,
Reimar Döffinger
-------------- next part --------------
Index: libmpdemux/video.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/video.c,v
retrieving revision 1.53
diff -u -r1.53 video.c
--- libmpdemux/video.c	26 Aug 2005 22:53:59 -0000	1.53
+++ libmpdemux/video.c	15 Sep 2005 15:06:53 -0000
@@ -532,7 +533,8 @@
             if(!i) return -1;
             if(!read_video_packet(d_video)) return -1; // EOF
           }
-          if((i&~0x60) == 0x101 || (i&~0x60) == 0x102 || (i&~0x60) == 0x105) break;
+//          if((i&~0x60) == 0x101 || (i&~0x60) == 0x102 || (i&~0x60) == 0x105) break;
+          if (i == 0x109) break;
         }
 	*start=videobuffer; in_size=videobuf_len;
 	videobuf_len=0;


More information about the MPlayer-dev-eng mailing list