comparison zmbvenc.c @ 9621:5680832edb83 libavcodec

Remove dead nested assignment found by CSA
author banan
date Sun, 10 May 2009 14:44:09 +0000
parents 4cab394c16ea
children bc32976d6d9d
comparison
equal deleted inserted replaced
9620:3ac52a187883 9621:5680832edb83
115 ZmbvEncContext * const c = avctx->priv_data; 115 ZmbvEncContext * const c = avctx->priv_data;
116 AVFrame *pict = data; 116 AVFrame *pict = data;
117 AVFrame * const p = &c->pic; 117 AVFrame * const p = &c->pic;
118 uint8_t *src, *prev; 118 uint8_t *src, *prev;
119 uint32_t *palptr; 119 uint32_t *palptr;
120 int zret = Z_OK;
121 int len = 0; 120 int len = 0;
122 int keyframe, chpal; 121 int keyframe, chpal;
123 int fl; 122 int fl;
124 int work_size = 0; 123 int work_size = 0;
125 int bw, bh; 124 int bw, bh;
224 c->zstream.total_in = 0; 223 c->zstream.total_in = 0;
225 224
226 c->zstream.next_out = c->comp_buf; 225 c->zstream.next_out = c->comp_buf;
227 c->zstream.avail_out = c->comp_size; 226 c->zstream.avail_out = c->comp_size;
228 c->zstream.total_out = 0; 227 c->zstream.total_out = 0;
229 if((zret = deflate(&c->zstream, Z_SYNC_FLUSH)) != Z_OK){ 228 if(deflate(&c->zstream, Z_SYNC_FLUSH) != Z_OK){
230 av_log(avctx, AV_LOG_ERROR, "Error compressing data\n"); 229 av_log(avctx, AV_LOG_ERROR, "Error compressing data\n");
231 return -1; 230 return -1;
232 } 231 }
233 232
234 memcpy(buf, c->comp_buf, c->zstream.total_out); 233 memcpy(buf, c->comp_buf, c->zstream.total_out);