Fix decoding of lossless 10-bit 4:4:4 H.264
authorAnton Mitrofanov <BugMaster@narod.ru>
Fri, 28 Oct 2011 15:13:13 +0000 (19:13 +0400)
committerRonald S. Bultje <rsbultje@gmail.com>
Sat, 29 Oct 2011 06:37:30 +0000 (23:37 -0700)
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
libavcodec/h264.c

index 880b5b7..fc20eb4 100644 (file)
@@ -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