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

Michael Niedermayer michaelni at gmx.at
Thu May 19 06:08:20 CEST 2011

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

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Into a blind darkness they enter who follow after the Ignorance,
they as if into a greater darkness enter who devote themselves
to the Knowledge alone. -- Isha Upanishad
-------------- 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-devel/attachments/20110519/a2cfb0c0/attachment.asc>

More information about the ffmpeg-devel mailing list