Commit 081c14a3 authored by Diego Biurrun's avatar Diego Biurrun

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

Originally committed as revision 20116 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 37a4269d
......@@ -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++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment