diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2009-12-01 01:01:37 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-12-01 01:01:37 +0000 |
commit | f40a7fd3162222e1cc8af3b43d4d47033558278b (patch) | |
tree | af96947f5ae1cbc69ef9b6660e379feb316ee432 | |
parent | 5f1836a7de6e21381ad37533737d38c3fb62d3d1 (diff) | |
download | ffmpeg-f40a7fd3162222e1cc8af3b43d4d47033558278b.tar.gz |
4:2:2 4:4:4 bugfix for the error concealment code.
Originally committed as revision 20678 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/error_resilience.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/error_resilience.c b/libavcodec/error_resilience.c index 3c0d2773fd..8c6ac9d8a3 100644 --- a/libavcodec/error_resilience.c +++ b/libavcodec/error_resilience.c @@ -33,8 +33,8 @@ static void decode_mb(MpegEncContext *s){ s->dest[0] = s->current_picture.data[0] + (s->mb_y * 16* s->linesize ) + s->mb_x * 16; - s->dest[1] = s->current_picture.data[1] + (s->mb_y * 8 * s->uvlinesize) + s->mb_x * 8; - s->dest[2] = s->current_picture.data[2] + (s->mb_y * 8 * s->uvlinesize) + s->mb_x * 8; + s->dest[1] = s->current_picture.data[1] + (s->mb_y * (16>>s->chroma_y_shift) * s->uvlinesize) + s->mb_x * (16>>s->chroma_x_shift); + s->dest[2] = s->current_picture.data[2] + (s->mb_y * (16>>s->chroma_y_shift) * s->uvlinesize) + s->mb_x * (16>>s->chroma_x_shift); MPV_decode_mb(s, s->block); } |