# HG changeset patch # User kostya # Date 1265875164 0 # Node ID 1d4aeef800d4ca6abfc28241ae1571da31011006 # Parent b622564e2d60015de6ce6a97b115d699e87a2582 Move 'chksum' declaration to the only block where that variable is used diff -r b622564e2d60 -r 1d4aeef800d4 indeo5.c --- a/indeo5.c Thu Feb 11 07:54:40 2010 +0000 +++ b/indeo5.c Thu Feb 11 07:59:24 2010 +0000 @@ -601,7 +601,6 @@ { 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 @@ #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",