mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/h264_mb: Fix 8x8dct in lossless for new versions of x264
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit 06dda70f1e
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
a599754e7e
commit
3716850e28
|
@ -630,7 +630,7 @@ static av_always_inline void hl_decode_mb_predict_luma(H264Context *h,
|
||||||
uint8_t *const ptr = dest_y + block_offset[i];
|
uint8_t *const ptr = dest_y + block_offset[i];
|
||||||
const int dir = h->intra4x4_pred_mode_cache[scan8[i]];
|
const int dir = h->intra4x4_pred_mode_cache[scan8[i]];
|
||||||
if (transform_bypass && h->sps.profile_idc == 244 && dir <= 1) {
|
if (transform_bypass && h->sps.profile_idc == 244 && dir <= 1) {
|
||||||
if (h->x264_build != -1) {
|
if (h->x264_build < 151U) {
|
||||||
h->hpc.pred8x8l_add[dir](ptr, h->mb + (i * 16 + p * 256 << pixel_shift), linesize);
|
h->hpc.pred8x8l_add[dir](ptr, h->mb + (i * 16 + p * 256 << pixel_shift), linesize);
|
||||||
} else
|
} else
|
||||||
h->hpc.pred8x8l_filter_add[dir](ptr, h->mb + (i * 16 + p * 256 << pixel_shift),
|
h->hpc.pred8x8l_filter_add[dir](ptr, h->mb + (i * 16 + p * 256 << pixel_shift),
|
||||||
|
|
Loading…
Reference in New Issue