[MPlayer-cvslog] r23731 - trunk/libmpdemux/demux_mpg.c

nicodvb subversion at mplayerhq.hu
Sat Jul 7 10:56:15 CEST 2007


Author: nicodvb
Date: Sat Jul  7 10:56:14 2007
New Revision: 23731

Log:
10l, forgot to skip the stuffing bytes eventually prepended to vc1 packets (identified by pes_extension2 subid)

Modified:
   trunk/libmpdemux/demux_mpg.c

Modified: trunk/libmpdemux/demux_mpg.c
==============================================================================
--- trunk/libmpdemux/demux_mpg.c	(original)
+++ trunk/libmpdemux/demux_mpg.c	Sat Jul  7 10:56:14 2007
@@ -411,8 +411,10 @@ static int demux_mpg_read_packet(demuxer
         hdrlen--;
         if(c!=0x81)  { mp_msg(MSGT_DEMUX,MSGL_V,"demux_mpg: unknown pes_extension2 format, len is > 1  \n"); return -1;}
         c=stream_read_char(demux->stream); //pes_extension2 payload === substream id
+        hdrlen--;
         if(c<0x55 || c>0x5F)   { mp_msg(MSGT_DEMUX,MSGL_V,"demux_mpg: unknown vc1 substream_id: 0x%x  \n", c); return -1;}
         pes_ext2_subid=c;
+        if(hdrlen>0) stream_skip(demux->stream, hdrlen);
       }
     }
     



More information about the MPlayer-cvslog mailing list