Commit 25738a3e authored by kostya's avatar kostya

When tracking non-zero coefficients during Indeo 5 decoding, make sure

it does not ignore coefficient value = 256.
Patch by Maxim ((!min)_pole \at gmx dot/ de)



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22275 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0b196f59
...@@ -413,7 +413,7 @@ int ff_ivi_decode_blocks(GetBitContext *gb, IVIBandDesc *band, IVITile *tile) ...@@ -413,7 +413,7 @@ int ff_ivi_decode_blocks(GetBitContext *gb, IVIBandDesc *band, IVITile *tile)
if (q > 1) if (q > 1)
val = val * q + FFSIGN(val) * ((q >> 1) - (q & 1)); val = val * q + FFSIGN(val) * ((q >> 1) - (q & 1));
trvec[pos] = val; trvec[pos] = val;
col_flags[pos & col_mask] |= val; /* track columns containing non-zero coeffs */ col_flags[pos & col_mask] |= !!val; /* track columns containing non-zero coeffs */
}// while }// while
if (scan_pos >= num_coeffs && sym != rvmap->eob_sym) if (scan_pos >= num_coeffs && sym != rvmap->eob_sym)
......
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