[FFmpeg-soc] [soc]: r5586 - indeo5/ivi_common.c

kostya subversion at mplayerhq.hu
Fri Jan 15 10:19:35 CET 2010


Author: kostya
Date: Fri Jan 15 10:19:35 2010
New Revision: 5586

Log:
Make sure scan_pos lies in block bounds before using it

Modified:
   indeo5/ivi_common.c

Modified: indeo5/ivi_common.c
==============================================================================
--- indeo5/ivi_common.c	Fri Jan 15 10:14:07 2010	(r5585)
+++ indeo5/ivi_common.c	Fri Jan 15 10:19:35 2010	(r5586)
@@ -372,6 +372,8 @@ int ff_ivi_decode_blocks(GetBitContext *
 
                     /* de-zigzag and dequantize */
                     scan_pos += run;
+                    if (scan_pos >= num_coeffs)
+                        break;
                     pos = band->scan[scan_pos];
 
                 #ifdef IVI_DEBUG


More information about the FFmpeg-soc mailing list