summaryrefslogtreecommitdiff
path: root/libavcodec/sgienc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/sgienc.c')
-rw-r--r--libavcodec/sgienc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/sgienc.c b/libavcodec/sgienc.c
index 787610abda..d37beff109 100644
--- a/libavcodec/sgienc.c
+++ b/libavcodec/sgienc.c
@@ -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++) {