]> git.sesse.net Git - ffmpeg/commitdiff
Remove dead nested assignment found by CSA
authorBenjamin Larsson <banan@ludd.ltu.se>
Sun, 10 May 2009 14:44:09 +0000 (14:44 +0000)
committerBenjamin Larsson <banan@ludd.ltu.se>
Sun, 10 May 2009 14:44:09 +0000 (14:44 +0000)
Originally committed as revision 18784 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/zmbvenc.c

index d45bbe2668663ef5fdd5eb5b63e4743e987409ab..5268b939d9fa9a2db499291b89474882b65ccdfc 100644 (file)
@@ -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;
     }