[SCM] libav/experimental: Use "!exp" instead of "exp == NULL" in if condition.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:52:18 UTC 2013


The following commit has been merged in the experimental branch:
commit 081c14a3180f90acebba4e50e564db7bfd86cd88
Author: Diego Biurrun <diego at biurrun.de>
Date:   Thu Oct 1 09:13:21 2009 +0000

    Use "!exp" instead of "exp == NULL" in if condition.
    
    Originally committed as revision 20116 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/sgienc.c b/libavcodec/sgienc.c
index 787610a..d37beff 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++) {

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list