Browse Source

allow packets with non-zero PES_scrambling_control

Originally committed as revision 5499 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Måns Rullgård 19 years ago
parent
commit
d8bee8dd1c
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/mpeg.c

+ 2
- 0
libavformat/mpeg.c View File

@@ -1490,10 +1490,12 @@ static int mpegps_read_pes_header(AVFormatContext *s,
len -= 9;
} else if ((c & 0xc0) == 0x80) {
/* mpeg 2 PES */
#if 0 /* some streams have this field set for no apparent reason */
if ((c & 0x30) != 0) {
/* Encrypted multiplex not handled */
goto redo;
}
#endif
flags = get_byte(&s->pb);
header_len = get_byte(&s->pb);
len -= 2;


Loading…
Cancel
Save