changeset 10339:a352df49a10f libavcodec

Use "!exp" instead of "exp == NULL" in if condition.
author diego
date Thu, 01 Oct 2009 09:13:21 +0000
parents 118f18919f4b
children 5f263438d11b
files sgienc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sgienc.c	Thu Oct 01 09:11:07 2009 +0000
+++ b/sgienc.c	Thu Oct 01 09:13:21 2009 +0000
@@ -117,7 +117,7 @@
         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++) {