[FFmpeg-cvslog] r12310 - trunk/libavformat/mpeg.c
michael
subversion
Tue Mar 4 02:31:16 CET 2008
Author: michael
Date: Tue Mar 4 02:31:15 2008
New Revision: 12310
Log:
Ignore flags after pts/dts if there are no bytes left.
Fixes decoding of vdr-radio.vdr. (issue198)
Modified:
trunk/libavformat/mpeg.c
Modified: trunk/libavformat/mpeg.c
==============================================================================
--- trunk/libavformat/mpeg.c (original)
+++ trunk/libavformat/mpeg.c Tue Mar 4 02:31:15 2008
@@ -334,6 +334,10 @@ static int mpegps_read_pes_header(AVForm
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--;
More information about the ffmpeg-cvslog
mailing list