Michael Niedermayer <[EMAIL PROTECTED]> added the comment:
Suggested patch attached.
I will commit in 48h if no objections.
----------
substatus: needs_more_info -> analyzed
______________________________________________________
FFmpeg issue tracker <[EMAIL PROTECTED]>
<https://roundup.mplayerhq.hu/roundup/ffmpeg/issue198>
______________________________________________________
Index: mpeg.c
===================================================================
--- mpeg.c (revision 12265)
+++ mpeg.c (working copy)
@@ -334,6 +334,10 @@
header_len -= 5;
}
}
+ if (flags & 0x01 && header_len == 0){
+ flags &= ~0x01;
+ av_log(s, AV_LOG_WARNING, "PES Extension flag set but no bytes left\n");
+ }
if (flags & 0x01) { /* PES extension */
pes_ext = get_byte(s->pb);
header_len--;