Michael Niedermayer <[EMAIL PROTECTED]> added the comment:

On Mon, Mar 03, 2008 at 12:39:44AM -0000, Mans Rullgard wrote:
> 
> Mans Rullgard <[EMAIL PROTECTED]> added the comment:
> 
> Michael Niedermayer <[EMAIL PROTECTED]> writes:
> 
> > Michael Niedermayer <[EMAIL PROTECTED]> added the comment:
> >
> > On Sun, Mar 02, 2008 at 11:31:59PM -0000, Mans Rullgard wrote:
> >> 
> >> Mans Rullgard <[EMAIL PROTECTED]> added the comment:
> >> 
> >> Michael Niedermayer <[EMAIL PROTECTED]> writes:
> >> 
> >> > Michael Niedermayer <[EMAIL PROTECTED]> added the comment:
> >> >
> >> > Suggested patch attached.
> >> > I will commit in 48h if no objections.
> >> >
> >> > 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");
> >> > +        }
> >> 
> >> This could just as well cover all PES header parts signalled by flags,
> >> even though we don't care about them.
> >
> > We already check that there was enough space available, and droping the
> > offending flag like here isnt possible, as "too little space"
> > doesnt say which flag, if any is wrong.
> 
> If the remaining length is zero, any set flag is wrong.

Or the length was wrong.
If you want i can certainly commit
flags &= 0xC0;

?

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No snowflake in an avalanche ever feels responsible. -- Voltaire

______________________________________________________
FFmpeg issue tracker <[EMAIL PROTECTED]>
<https://roundup.mplayerhq.hu/roundup/ffmpeg/issue198>
______________________________________________________

Reply via email to