diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-04-30 03:31:58 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-04-30 03:49:32 +0200 |
commit | 24e3f44aedd450fa48ca95d995e65341c2718b0c (patch) | |
tree | 8b8ffa7a67f9c1b19f9bd0f95d0e5942f6029939 /libavcodec/error_resilience.c | |
parent | bcc213cf36f999343602da049de31c983194dbdb (diff) | |
download | ffmpeg-24e3f44aedd450fa48ca95d995e65341c2718b0c.tar.gz |
EC: fix dest index for non 420 chroma.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/error_resilience.c')
-rw-r--r-- | libavcodec/error_resilience.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/error_resilience.c b/libavcodec/error_resilience.c index 2691109e49..63f996ccde 100644 --- a/libavcodec/error_resilience.c +++ b/libavcodec/error_resilience.c @@ -48,6 +48,8 @@ static void decode_mb(MpegEncContext *s, int ref) ff_init_block_index(s); ff_update_block_index(s); + s->dest[1] += (16 >> s->chroma_x_shift) - 8; + s->dest[2] += (16 >> s->chroma_x_shift) - 8; if (CONFIG_H264_DECODER && s->codec_id == CODEC_ID_H264) { H264Context *h = (void*)s; |