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

Ramiro Polla ramiro
Thu Jun 26 22:32:27 CEST 2008


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?




More information about the ffmpeg-devel mailing list