git.videolan.org
/
ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use "!exp" instead of "exp == NULL" in if condition.
[ffmpeg.git]
/
libavcodec
/
sgienc.c
diff --git
a/libavcodec/sgienc.c
b/libavcodec/sgienc.c
index
787610a
..
d37beff
100644
(file)
--- 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++) {