[SCM] libav/experimental: Remove dead nested assignment found by CSA

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:45:31 UTC 2013


The following commit has been merged in the experimental branch:
commit 841b45e55d4c657fefb89005fa543b8709ce0cec
Author: Benjamin Larsson <banan at ludd.ltu.se>
Date:   Sun May 10 14:44:09 2009 +0000

    Remove dead nested assignment found by CSA
    
    Originally committed as revision 18784 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/zmbvenc.c b/libavcodec/zmbvenc.c
index d45bbe2..5268b93 100644
--- a/libavcodec/zmbvenc.c
+++ b/libavcodec/zmbvenc.c
@@ -117,7 +117,6 @@ static int encode_frame(AVCodecContext *avctx, uint8_t *buf, int buf_size, void
     AVFrame * const p = &c->pic;
     uint8_t *src, *prev;
     uint32_t *palptr;
-    int zret = Z_OK;
     int len = 0;
     int keyframe, chpal;
     int fl;
@@ -226,7 +225,7 @@ static int encode_frame(AVCodecContext *avctx, uint8_t *buf, int buf_size, void
     c->zstream.next_out = c->comp_buf;
     c->zstream.avail_out = c->comp_size;
     c->zstream.total_out = 0;
-    if((zret = deflate(&c->zstream, Z_SYNC_FLUSH)) != Z_OK){
+    if(deflate(&c->zstream, Z_SYNC_FLUSH) != Z_OK){
         av_log(avctx, AV_LOG_ERROR, "Error compressing data\n");
         return -1;
     }

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list