From 0aae3f43e48bbe4b3933db83f75b30685ee8015c Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 10 Apr 2003 01:39:53 +0000 Subject: fixing slice decoding, dunno why the regression tests didnt catch that ... Originally committed as revision 1744 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/error_resilience.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libavcodec/error_resilience.c') diff --git a/libavcodec/error_resilience.c b/libavcodec/error_resilience.c index 77488cd589..486f5670a2 100644 --- a/libavcodec/error_resilience.c +++ b/libavcodec/error_resilience.c @@ -614,13 +614,13 @@ void ff_er_add_slice(MpegEncContext *s, int startx, int starty, int endx, int en s->error_status_table[i] &= mask; } } - - s->error_status_table[start_xy] |= VP_START; - + if(end_xy < s->mb_num){ s->error_status_table[end_xy] &= mask; s->error_status_table[end_xy] |= status; } + + s->error_status_table[start_xy] |= VP_START; } void ff_er_frame_end(MpegEncContext *s){ -- cgit v1.2.3