FFmpeg/libavcodec
Herve W a949360163 * Allocating 16 bytes more for the MEMALIGN_HACK is enough. There's no
need for 1 more extra byte.

* Checking whether the to be allocated size is larger than INT_MAX,
doesn't assure that size+16 bytes for the MEMALIGN_HACK isn't larger
than INT_MAX.

* malloc might return NULL. Checking for it before using that pointer
seems like a good idea.
Patch by Herve W. H PPP O PPP W PPP aka PPP V+ffmpeg AH gmail PPP com
Original thread:
Date: Jun 29, 2006 1:21 PM
Subject: [Ffmpeg-devel] [PATCH] minor improvements to libavcodec/mem.c

Originally committed as revision 5559 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-06-30 08:00:01 +00:00
..
2006-01-21 18:19:47 +00:00
2006-06-03 19:04:56 +00:00
2006-03-06 08:54:33 +00:00
2006-01-30 23:33:19 +00:00
2006-03-08 04:13:55 +00:00
2006-04-28 23:16:42 +00:00
2004-11-12 01:21:34 +00:00
2006-03-10 21:20:49 +00:00
2006-05-28 22:44:14 +00:00
2006-02-02 02:36:27 +00:00
2006-05-31 04:52:02 +00:00
2006-03-31 18:22:35 +00:00
2006-05-16 15:19:54 +00:00
2006-03-08 11:43:10 +00:00
2006-05-26 15:44:29 +00:00
2006-05-30 19:40:28 +00:00
2006-03-10 20:58:42 +00:00
2005-06-01 21:19:00 +00:00
2006-02-25 22:41:31 +00:00
2006-02-20 19:01:29 +00:00
2006-06-15 09:20:31 +00:00