diff error_resilience.c @ 1285:6e039762d5cb libavcodec

motion vector vissualization for mpeg1/2 mpeg1/2 cleanup/bugfix error resilience bugfix
author michaelni
date Tue, 27 May 2003 12:31:03 +0000
parents fea03d2c4946
children f07e17427140
line wrap: on
line diff
--- a/error_resilience.c	Mon May 26 21:40:58 2003 +0000
+++ b/error_resilience.c	Tue May 27 12:31:03 2003 +0000
@@ -733,7 +733,7 @@
         for(i=s->mb_num-2; i>=s->mb_width+100; i--){ //FIXME +100 hack
             const int mb_xy= s->mb_index2xy[i];
             int error1= s->error_status_table[mb_xy  ];
-            int error2= s->error_status_table[mb_xy+1];
+            int error2= s->error_status_table[s->mb_index2xy[i+1]];
         
             if(error1&VP_START)
                 end_ok=1;