Commit 6a272308 authored by kostya's avatar kostya

Move 'chksum' declaration to the only block where that variable is used

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21753 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f8d4e354
......@@ -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",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment