From e7edeb9191ca434fc707f2e984a1558d04f16545 Mon Sep 17 00:00:00 2001 From: Maxim Poliakovski Date: Sun, 7 Mar 2010 06:03:45 +0000 Subject: [PATCH] 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) Originally committed as revision 22275 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/ivi_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/ivi_common.c b/libavcodec/ivi_common.c index ad08b448b0..e4cb42fb50 100644 --- a/libavcodec/ivi_common.c +++ b/libavcodec/ivi_common.c @@ -413,7 +413,7 @@ int ff_ivi_decode_blocks(GetBitContext *gb, IVIBandDesc *band, IVITile *tile) if (q > 1) val = val * q + FFSIGN(val) * ((q >> 1) - (q & 1)); 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 if (scan_pos >= num_coeffs && sym != rvmap->eob_sym)