From 081c14a3180f90acebba4e50e564db7bfd86cd88 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Thu, 1 Oct 2009 09:13:21 +0000 Subject: Use "!exp" instead of "exp == NULL" in if condition. Originally committed as revision 20116 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/sgienc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/sgienc.c') 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++) { -- cgit v1.2.3