[FFmpeg-soc] [soc]: r1042 - rv40/rv40.c

kostya subversion at mplayerhq.hu
Mon Aug 20 11:47:58 CEST 2007


Author: kostya
Date: Mon Aug 20 11:47:58 2007
New Revision: 1042

Log:
Do not run over picture height in case of incorrect data

Modified:
   rv40/rv40.c

Modified: rv40/rv40.c
==============================================================================
--- rv40/rv40.c	(original)
+++ rv40/rv40.c	Mon Aug 20 11:47:58 2007
@@ -1362,7 +1362,7 @@ if(s->pict_type == B_TYPE){
     s->resync_mb_x= s->mb_x;
     s->resync_mb_y= s->mb_y;
     ff_init_block_index(s);
-    while(s->mb_num_left--) {
+    while(s->mb_num_left-- && s->mb_y < s->mb_height) {
         ff_update_block_index(s);
         s->dsp.clear_blocks(s->block[0]);
 



More information about the FFmpeg-soc mailing list