changeset 11384:ba57caf45845 libavcodec

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)
author kostya
date Sun, 07 Mar 2010 06:03:45 +0000
parents 3d5d0c2d5b6b
children 351d1c11195b
files ivi_common.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ivi_common.c	Sat Mar 06 23:36:30 2010 +0000
+++ b/ivi_common.c	Sun Mar 07 06:03:45 2010 +0000
@@ -413,7 +413,7 @@
                     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)