[FFmpeg-devel] [PATCH] IFF: Check for invalid width and height in decoder

Sebastian Vater cdgs.basty
Mon May 10 15:39:04 CEST 2010


Ronald S. Bultje a ?crit :
> Hi,
>
> On Mon, May 10, 2010 at 9:35 AM, Sebastian Vater
> <cdgs.basty at googlemail.com> wrote:
>   
>> M?ns Rullg?rd a ?crit :
>>     
>>> Michael Niedermayer <michaelni at gmx.at> writes:
>>>
>>>       
>>>> ok with me, that is if noone minds printing signed values  with %u
>>>>
>>>>         
>>> I mind.  The code is checking for negative size, but prints the
>>> offending values as unsigned.  WTF?
>>>
>>>       
>> Fixed.
>>     
>
> Why don't you use avcodec_check_dimensions()?
>   

Because it doesn't check for == 0, which I have to...also
avcodec_check_dimensions prints them unsigned.

-- 

Best regards,
                   :-) Basty/CDGS (-:




More information about the ffmpeg-devel mailing list