changeset 11121:1d4aeef800d4 libavcodec

Move 'chksum' declaration to the only block where that variable is used
author kostya
date Thu, 11 Feb 2010 07:59:24 +0000
parents b622564e2d60
children e45c852b6820
files indeo5.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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",