[FFmpeg-devel] [PATCH] mem: prefer SIZE_MAX over INT_MAX in av_malloc() and av_realloc() checks

Reimar Döffinger Reimar.Doeffinger at gmx.de
Thu May 19 08:20:11 CEST 2011


On 19 May 2011, at 06:08, Michael Niedermayer <michaelni at gmx.at> wrote:
> On Thu, May 19, 2011 at 12:07:27AM +0200, Stefano Sabatini wrote:
>> Now the functions accepts size_t size rather than int values, so using
>> size_t is more correct.
> 
> 2gb should be enough for everyone ;)
> seriously i think allocating more (currently) is likely a bug
> maybe in a few years rawvideo frames will need but until then its
> safer to not extend this limit
> thats IMHO

I agree. I also prefer for behaviour to differ as little as possible between 32 and 64 bit systems.


More information about the ffmpeg-devel mailing list