From 772225c041507eba3fd5f9cfcb37d58bfbd579d4 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Thu, 20 Jan 2011 17:24:19 -0500 Subject: Revert 2a1f431d38ea9c05abb215d70c7dc09cdb6888ab, it broke H264 lossless. (cherry picked from commit 66c6b5e2a5e6376c4a5c65b1d96fd7a1580bdfcf) --- libavcodec/h264_cavlc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libavcodec/h264_cavlc.c') diff --git a/libavcodec/h264_cavlc.c b/libavcodec/h264_cavlc.c index 55ff02294b..b8bc45058c 100644 --- a/libavcodec/h264_cavlc.c +++ b/libavcodec/h264_cavlc.c @@ -987,9 +987,8 @@ 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_chroma_dc[chroma_idx], CHROMA_DC_BLOCK_INDEX+chroma_idx, chroma_dc_scan, NULL, 4) < 0){ + if( decode_residual(h, gb, h->mb + 256 + 16*4*chroma_idx, CHROMA_DC_BLOCK_INDEX+chroma_idx, chroma_dc_scan, NULL, 4) < 0){ return -1; } } -- cgit v1.2.3