aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/error_resilience.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2003-05-27 12:31:03 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-05-27 12:31:03 +0000
commitdb6e7795060fd7c60a259f3e5def662f89936eb9 (patch)
treee5a14bc474ffd653768178bb2f4af02f8e24fd9f /libavcodec/error_resilience.c
parente82c5a8cc0fdf303875ffb561a7e422848e805a8 (diff)
downloadffmpeg-db6e7795060fd7c60a259f3e5def662f89936eb9.tar.gz
motion vector vissualization for mpeg1/2
mpeg1/2 cleanup/bugfix error resilience bugfix Originally committed as revision 1911 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/error_resilience.c')
-rw-r--r--libavcodec/error_resilience.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/error_resilience.c b/libavcodec/error_resilience.c
index 6a940ed0aa..4ac92bfd29 100644
--- a/libavcodec/error_resilience.c
+++ b/libavcodec/error_resilience.c
@@ -733,7 +733,7 @@ void ff_er_frame_end(MpegEncContext *s){
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;