[MPlayer-cvslog] r23742 - trunk/libmpdemux/demux_mpg.c
nicodvb
subversion at mplayerhq.hu
Sun Jul 8 12:06:47 CEST 2007
Author: nicodvb
Date: Sun Jul 8 12:06:47 2007
New Revision: 23742
Log:
unified the skip of header and stuffing bytes after the parsing of pes_extension[12] fields
Modified:
trunk/libmpdemux/demux_mpg.c
Modified: trunk/libmpdemux/demux_mpg.c
==============================================================================
--- trunk/libmpdemux/demux_mpg.c (original)
+++ trunk/libmpdemux/demux_mpg.c Sun Jul 8 12:06:47 2007
@@ -362,10 +362,7 @@ static int demux_mpg_read_packet(demuxer
len-=10;hdrlen-=10;
}
len-=hdrlen;
- if(hdrlen>0) {
- if(!parse_ext2)
- stream_skip(demux->stream,hdrlen); // skip header bytes
- else if(hdrlen>=3) {
+ if(parse_ext2 && hdrlen>=3) {
c=stream_read_char(demux->stream);
hdrlen--;
@@ -414,9 +411,9 @@ static int demux_mpg_read_packet(demuxer
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);
}
- }
+ if(hdrlen>0)
+ stream_skip(demux->stream,hdrlen); // skip header and stuffing bytes
if(id==0x1FD && pes_ext2_subid!=-1) {
//==== EVO VC1 STREAMS ===//
More information about the MPlayer-cvslog
mailing list