diff options
author | Benjamin Larsson <banan@ludd.ltu.se> | 2009-05-10 14:44:09 +0000 |
---|---|---|
committer | Benjamin Larsson <banan@ludd.ltu.se> | 2009-05-10 14:44:09 +0000 |
commit | 841b45e55d4c657fefb89005fa543b8709ce0cec (patch) | |
tree | 1c0aef72521dac742e1f86bebbe97444a27559bf /libavcodec/zmbvenc.c | |
parent | 0871e65cf60db9e6d886d684e86763690443ca92 (diff) | |
download | ffmpeg-841b45e55d4c657fefb89005fa543b8709ce0cec.tar.gz |
Remove dead nested assignment found by CSA
Originally committed as revision 18784 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/zmbvenc.c')
-rw-r--r-- | libavcodec/zmbvenc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/zmbvenc.c b/libavcodec/zmbvenc.c index d45bbe2668..5268b939d9 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; } |