[FFmpeg-soc] [soc]: r4212 - mlp/mlpenc.c

ramiro subversion at mplayerhq.hu
Mon Apr 20 04:33:52 CEST 2009


Author: ramiro
Date: Mon Apr 20 04:33:52 2009
New Revision: 4212

Log:
bits + shift < 16

Modified:
   mlp/mlpenc.c

Modified: mlp/mlpenc.c
==============================================================================
--- mlp/mlpenc.c	Mon Apr 20 04:33:12 2009	(r4211)
+++ mlp/mlpenc.c	Mon Apr 20 04:33:52 2009	(r4212)
@@ -1368,7 +1368,7 @@ static void code_filter_coeffs(MLPEncode
 
     bits = FFMAX(number_sbits(min), number_sbits(max));
 
-    for (shift = 0; shift < 7 && !(coeff_mask & (1<<shift)); shift++);
+    for (shift = 0; shift < 7 && bits + shift < 16 && !(coeff_mask & (1<<shift)); shift++);
 
     fp->coeff_bits  = bits;
     fp->coeff_shift = shift;


More information about the FFmpeg-soc mailing list