[FFmpeg-user] a question about av_image_check_size

Nicolas George nicolas.george at normalesup.org
Mon Aug 6 21:42:57 CEST 2012

Le decadi 20 thermidor, an CCXX, jih488 a écrit :
>     I have read the av_image_check_size() function  and find that  the width
> and height  all  have add 128.so  why  does  the width and height must  be
> added 128?

So that codecs, filters and so can write "(width + 31) * height" without
having to check for overflow. It is just a safety margin.


  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20120806/6f007b1c/attachment.asc>

More information about the ffmpeg-user mailing list