[FFmpeg-cvslog] r21753 - trunk/libavcodec/indeo5.c
kostya
subversion
Thu Feb 11 08:59:24 CET 2010
Author: kostya
Date: Thu Feb 11 08:59:24 2010
New Revision: 21753
Log:
Move 'chksum' declaration to the only block where that variable is used
Modified:
trunk/libavcodec/indeo5.c
Modified: trunk/libavcodec/indeo5.c
==============================================================================
--- trunk/libavcodec/indeo5.c Thu Feb 11 08:54:40 2010 (r21752)
+++ trunk/libavcodec/indeo5.c Thu Feb 11 08:59:24 2010 (r21753)
@@ -601,7 +601,6 @@ static int decode_band(IVI5DecContext *c
{
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 *c
#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",
More information about the ffmpeg-cvslog
mailing list