mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 16:52:31 +00:00
Ignore flags after pts/dts if there are no bytes left.
Fixes decoding of vdr-radio.vdr. (issue198) Originally committed as revision 12310 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
5a6a9e78ab
commit
675b8390f6
@ -334,6 +334,10 @@ static int mpegps_read_pes_header(AVFormatContext *s,
|
||||
header_len -= 5;
|
||||
}
|
||||
}
|
||||
if (flags & 0x3f && header_len == 0){
|
||||
flags &= 0xC0;
|
||||
av_log(s, AV_LOG_WARNING, "Further flags set but no bytes left\n");
|
||||
}
|
||||
if (flags & 0x01) { /* PES extension */
|
||||
pes_ext = get_byte(s->pb);
|
||||
header_len--;
|
||||
|
Loading…
Reference in New Issue
Block a user