summaryrefslogtreecommitdiff
path: root/libavcodec/h264_cavlc.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/h264_cavlc.c
parent290fabc684244b86d47527008020b0b2eb62f836 (diff)
downloadffmpeg-2a1f431d38ea9c05abb215d70c7dc09cdb6888ab.tar.gz
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/h264_cavlc.c')
-rw-r--r--libavcodec/h264_cavlc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/h264_cavlc.c b/libavcodec/h264_cavlc.c
index b8bc45058c..55ff02294b 100644
--- a/libavcodec/h264_cavlc.c
+++ b/libavcodec/h264_cavlc.c
@@ -987,8 +987,9 @@ decode_intra_mb:
}
if(cbp&0x30){
+ AV_ZERO128(h->mb_chroma_dc);
for(chroma_idx=0; chroma_idx<2; chroma_idx++)
- if( decode_residual(h, gb, h->mb + 256 + 16*4*chroma_idx, CHROMA_DC_BLOCK_INDEX+chroma_idx, chroma_dc_scan, NULL, 4) < 0){
+ if( decode_residual(h, gb, h->mb_chroma_dc[chroma_idx], CHROMA_DC_BLOCK_INDEX+chroma_idx, chroma_dc_scan, NULL, 4) < 0){
return -1;
}
}