summaryrefslogtreecommitdiff
path: root/libavcodec/svq3.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2011-01-20 17:24:19 -0500
committerMichael Niedermayer <michaelni@gmx.at>2011-01-21 20:36:01 +0100
commit772225c041507eba3fd5f9cfcb37d58bfbd579d4 (patch)
tree9158401dc3dd3d4aea715b9ab27b1016ac5819c9 /libavcodec/svq3.c
parent2293b0b698ce44d34897cc092bf1eb6b3571b7f8 (diff)
Revert 2a1f431d38ea9c05abb215d70c7dc09cdb6888ab, it broke H264 lossless.
(cherry picked from commit 66c6b5e2a5e6376c4a5c65b1d96fd7a1580bdfcf)
Diffstat (limited to 'libavcodec/svq3.c')
-rw-r--r--libavcodec/svq3.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c
index 62a20911a3..a52744228e 100644
--- a/libavcodec/svq3.c
+++ b/libavcodec/svq3.c
@@ -671,12 +671,11 @@ static int svq3_decode_mb(H264Context *h, unsigned int mb_type)
}
if ((cbp & 0x30)) {
- AV_ZERO128(h->mb_chroma_dc);
for (i = 0; i < 2; ++i) {
- if (svq3_decode_block(&s->gb, h->mb_chroma_dc[i], 0, 3)){
- av_log(h->s.avctx, AV_LOG_ERROR, "error while decoding chroma dc block\n");
- return -1;
- }
+ if (svq3_decode_block(&s->gb, &h->mb[16*(16 + 4*i)], 0, 3)){
+ av_log(h->s.avctx, AV_LOG_ERROR, "error while decoding chroma dc block\n");
+ return -1;
+ }
}
if ((cbp & 0x20)) {