# HG changeset patch # User nicodvb # Date 1183798574 0 # Node ID 0ba2f26f25898a5f1d23c64e212a0fed4352f3dd # Parent df28abb8fe7408dd0c87b33b58370aec18247c38 10l, forgot to skip the stuffing bytes eventually prepended to vc1 packets (identified by pes_extension2 subid) diff -r df28abb8fe74 -r 0ba2f26f2589 libmpdemux/demux_mpg.c --- a/libmpdemux/demux_mpg.c Sat Jul 07 08:31:57 2007 +0000 +++ b/libmpdemux/demux_mpg.c Sat Jul 07 08:56:14 2007 +0000 @@ -411,8 +411,10 @@ 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); } }