summaryrefslogtreecommitdiff
path: root/libavcodec/svq3.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2013-02-18 21:03:01 -0800
committerMichael Niedermayer <michaelni@gmx.at>2013-02-19 15:59:53 +0100
commita1f1ca96b42698002920467c0aab9e636893088a (patch)
treec63fdb06701d23013462c75a39a63468dc0970e7 /libavcodec/svq3.c
parentb97d61f924eef1a8930f80cd43d0733c12f67f35 (diff)
svq3: fix decoding residual blocks of b-frames.
The residual block data of 16x16 blocks was ignored for b-frames, which leads to easy-to-identify artifacts. After this patch, the artifacts are gone. Sample video: svq3_watermark.mov. (Fate results unaffected.) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/svq3.c')
-rw-r--r--libavcodec/svq3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c
index 10ee1094b4..7817766e8c 100644
--- a/libavcodec/svq3.c
+++ b/libavcodec/svq3.c
@@ -1237,7 +1237,7 @@ static int svq3_decode_frame(AVCodecContext *avctx, void *data,
return -1;
}
- if (mb_type != 0)
+ if (mb_type != 0 || h->cbp)
ff_h264_hl_decode_mb(h);
if (h->pict_type != AV_PICTURE_TYPE_B && !h->low_delay)