aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/svq3.c
diff options
context:
space:
mode:
authorJason Garrett-Glaser <darkshikari@gmail.com>2011-01-15 01:10:46 +0000
committerJason Garrett-Glaser <darkshikari@gmail.com>2011-01-15 01:10:46 +0000
commit2a1f431d38ea9c05abb215d70c7dc09cdb6888ab (patch)
treec6e5f1d0b7a3fd2eee950dbb915ef27625644232 /libavcodec/svq3.c
parent290fabc684244b86d47527008020b0b2eb62f836 (diff)
downloadandroid_external_ffmpeg-2a1f431d38ea9c05abb215d70c7dc09cdb6888ab.tar.gz
android_external_ffmpeg-2a1f431d38ea9c05abb215d70c7dc09cdb6888ab.tar.bz2
android_external_ffmpeg-2a1f431d38ea9c05abb215d70c7dc09cdb6888ab.zip
H.264/SVQ3: make chroma DC work the same way as luma DC
No speed improvement, but necessary for some future stuff. Also opens up the possibility of asm chroma dc idct/dequant. Originally committed as revision 26349 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/svq3.c')
-rw-r--r--libavcodec/svq3.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c
index a52744228e..62a20911a3 100644
--- a/libavcodec/svq3.c
+++ b/libavcodec/svq3.c
@@ -671,11 +671,12 @@ 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[16*(16 + 4*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_chroma_dc[i], 0, 3)){
+ av_log(h->s.avctx, AV_LOG_ERROR, "error while decoding chroma dc block\n");
+ return -1;
+ }
}
if ((cbp & 0x20)) {