diff options
author | Anton Mitrofanov <BugMaster@narod.ru> | 2011-10-28 19:13:13 +0400 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2011-10-28 23:37:30 -0700 |
commit | fdb5314ea7fe0ab1036b8de94d47861d99e4daeb (patch) | |
tree | aae4376fb7b13255972dbfaef41c3b24750cb68a /libavcodec/h264.c | |
parent | 61856d06eb30955290911140e6745bad93a25323 (diff) | |
download | ffmpeg-fdb5314ea7fe0ab1036b8de94d47861d99e4daeb.tar.gz |
Fix decoding of lossless 10-bit 4:4:4 H.264
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r-- | libavcodec/h264.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 880b5b7b58..fc20eb4286 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -1779,7 +1779,7 @@ static av_always_inline void hl_decode_mb_predict_luma(H264Context *h, int mb_ty static const uint8_t dc_mapping[16] = { 0*16, 1*16, 4*16, 5*16, 2*16, 3*16, 6*16, 7*16, 8*16, 9*16,12*16,13*16,10*16,11*16,14*16,15*16}; for(i = 0; i < 16; i++) - dctcoef_set(h->mb+p*256, pixel_shift, dc_mapping[i], dctcoef_get(h->mb_luma_dc[p], pixel_shift, i)); + dctcoef_set(h->mb+(p*256 << pixel_shift), pixel_shift, dc_mapping[i], dctcoef_get(h->mb_luma_dc[p], pixel_shift, i)); } } }else |