Commit 32bca27a authored by diego's avatar diego

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20116 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 594e05d1
...@@ -117,7 +117,7 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf, ...@@ -117,7 +117,7 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf,
buf += tablesize; buf += tablesize;
/* Make an intermediate consecutive buffer. */ /* Make an intermediate consecutive buffer. */
if ((encode_buf = av_malloc(width)) == NULL) if (!(encode_buf = av_malloc(width)))
return -1; return -1;
for (z = 0; z < depth; z++) { 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