summaryrefslogtreecommitdiff
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorAnton Mitrofanov <BugMaster@narod.ru>2011-10-28 23:33:23 +0400
committerRonald S. Bultje <rsbultje@gmail.com>2011-10-28 23:37:30 -0700
commit640d5f1c801061844394813c78ea449e5826f6e5 (patch)
tree20a745188e59cc1a29c748e3425917cb824758ae /libavcodec/h264.c
parentfdb5314ea7fe0ab1036b8de94d47861d99e4daeb (diff)
Fix decoding of lossless 4:2:2 H.264
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index fc20eb4286..f7c52cdbcd 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -2002,7 +2002,7 @@ static av_always_inline void hl_decode_mb_internal(H264Context *h, int simple, i
}
if (chroma422) {
for(i=j*16+4; i<j*16+8; i++){
- if(h->non_zero_count_cache[ scan8[i] ] || dctcoef_get(h->mb, pixel_shift, i*16))
+ if(h->non_zero_count_cache[ scan8[i+4] ] || dctcoef_get(h->mb, pixel_shift, i*16))
idct_add (dest[j-1] + block_offset[i+4], h->mb + (i*16 << pixel_shift), uvlinesize);
}
}