[FFmpeg-cvslog] r18784 - trunk/libavcodec/zmbvenc.c

banan subversion
Sun May 10 16:44:10 CEST 2009


Author: banan
Date: Sun May 10 16:44:09 2009
New Revision: 18784

Log:
Remove dead nested assignment found by CSA

Modified:
   trunk/libavcodec/zmbvenc.c

Modified: trunk/libavcodec/zmbvenc.c
==============================================================================
--- trunk/libavcodec/zmbvenc.c	Sun May 10 16:33:40 2009	(r18783)
+++ trunk/libavcodec/zmbvenc.c	Sun May 10 16:44:09 2009	(r18784)
@@ -117,7 +117,6 @@ static int encode_frame(AVCodecContext *
     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 *
     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;
     }



More information about the ffmpeg-cvslog mailing list