[FFmpeg-devel] [PATCH] Prevent infinite loop in mlpdec.c

Michael Niedermayer michaelni
Thu Jun 26 23:53:46 CEST 2008


On Thu, Jun 26, 2008 at 09:32:27PM +0100, Ramiro Polla wrote:
> Michael Niedermayer wrote:
> > On Thu, Jun 26, 2008 at 08:29:38PM +0100, Ramiro Polla wrote:
> >> Hello,
> >>
> >> Attached patches prevent an infinite loop in the MLP parser if a major 
> >> header is corrupt.
> > 
> > instead of your patches does
> >  lost_sync:
> >      mp->in_sync = 0;
> > -    return -1;
> > +    return  1;
> >  }
> > 
> > work as well?
> 
> Yes. May I commit your change instead?

ok

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

No great genius has ever existed without some touch of madness. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080626/e0120548/attachment.pgp>



More information about the ffmpeg-devel mailing list