diff options
author | Diego Biurrun <diego@biurrun.de> | 2009-10-01 09:13:21 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2009-10-01 09:13:21 +0000 |
commit | 081c14a3180f90acebba4e50e564db7bfd86cd88 (patch) | |
tree | f438d10ae60e6eef7f246c136ff2da316e335d2b | |
parent | 37a4269d70c3695935167ba119f1883d3d1abfe1 (diff) | |
download | ffmpeg-081c14a3180f90acebba4e50e564db7bfd86cd88.tar.gz |
Use "!exp" instead of "exp == NULL" in if condition.
Originally committed as revision 20116 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/sgienc.c | 2 |
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++) { |