summaryrefslogtreecommitdiff
path: root/libavcodec/indeo5.c
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2010-02-11 07:59:24 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2010-02-11 07:59:24 +0000
commit94dde5c1ec4c3d70e544282d44cd0f9be274408f (patch)
tree41d11ff6148731807ce27629daa704224c8f82ee /libavcodec/indeo5.c
parentf7d649185b62a83ab58514207151f2a8059090fb (diff)
Move 'chksum' declaration to the only block where that variable is used
Originally committed as revision 21753 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/indeo5.c')
-rw-r--r--libavcodec/indeo5.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/indeo5.c b/libavcodec/indeo5.c
index 3ab372a8a6..43d0c40d22 100644
--- a/libavcodec/indeo5.c
+++ b/libavcodec/indeo5.c
@@ -601,7 +601,6 @@ static int decode_band(IVI5DecContext *ctx, int plane_num,
{
int result, i, t, idx1, idx2;
IVITile *tile;
- uint16_t chksum;
band->buf = band->bufs[ctx->dst_buf];
band->ref_buf = band->bufs[ctx->ref_buf];
@@ -674,7 +673,7 @@ static int decode_band(IVI5DecContext *ctx, int plane_num,
#if IVI_DEBUG
if (band->checksum_present) {
- chksum = ivi_calc_band_checksum(band);
+ uint16_t chksum = ivi_calc_band_checksum(band);
if (chksum != band->checksum) {
av_log(avctx, AV_LOG_ERROR,
"Band checksum mismatch! Plane %d, band %d, received: %x, calculated: %x\n",