]> git.sesse.net Git - ffmpeg/commit
mov: Don't av_malloc(0).
authorAlex Converse <alex.converse@gmail.com>
Mon, 5 Dec 2011 00:38:05 +0000 (16:38 -0800)
committerAlex Converse <alex.converse@gmail.com>
Mon, 5 Dec 2011 17:51:35 +0000 (09:51 -0800)
commit52401b82bd2ed30d4c4353cb084bf4ee679d0c22
treec8cfe458db993f7da7d11b100171998b8f40d557
parent9179f27c6431e36cf0ebd320fb2733f56969bb44
mov: Don't av_malloc(0).

malloc() is allowed to return NULL when zero is the argument. This
causes us to think malloc has failed and return AVERROR(ENOMEM). In
addition OS X malloc() returns an unfreeable non-NULL pointer for size
zero when alignment is greater than 16.
libavformat/mov.c