1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

Use "!exp" instead of "exp == NULL" in if condition.

Originally committed as revision 20116 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Diego Biurrun 2009-10-01 09:13:21 +00:00
parent 37a4269d70
commit 081c14a318

View File

@ -117,7 +117,7 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf,
buf += tablesize;
/* Make an intermediate consecutive buffer. */
if ((encode_buf = av_malloc(width)) == NULL)
if (!(encode_buf = av_malloc(width)))
return -1;
for (z = 0; z < depth; z++) {