[FFmpeg-cvslog] r20116 - trunk/libavcodec/sgienc.c

diego subversion
Thu Oct 1 11:13:21 CEST 2009


Author: diego
Date: Thu Oct  1 11:13:21 2009
New Revision: 20116

Log:
Use "!exp" instead of "exp == NULL" in if condition.

Modified:
   trunk/libavcodec/sgienc.c

Modified: trunk/libavcodec/sgienc.c
==============================================================================
--- trunk/libavcodec/sgienc.c	Thu Oct  1 11:11:07 2009	(r20115)
+++ trunk/libavcodec/sgienc.c	Thu Oct  1 11:13:21 2009	(r20116)
@@ -117,7 +117,7 @@ static int encode_frame(AVCodecContext *
         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++) {



More information about the ffmpeg-cvslog mailing list