diff ivi_common.c @ 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 d617766bf19b
children 43ae6b3f9e15
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)