1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-13 21:28:01 +02:00

vp9: clip intermediates in dequant calculations.

This makes values consistent with libvpx.
This commit is contained in:
Ronald S. Bultje 2015-09-02 13:47:22 -04:00
parent eaff36c973
commit 48f641a18b

View File

@ -785,9 +785,9 @@ static int decode_frame_header(AVCodecContext *ctx,
if (s->segmentation.feat[i].q_enabled) {
if (s->segmentation.absolute_vals)
qyac = s->segmentation.feat[i].q_val;
qyac = av_clip_uintp2(s->segmentation.feat[i].q_val, 8);
else
qyac = s->yac_qi + s->segmentation.feat[i].q_val;
qyac = av_clip_uintp2(s->yac_qi + s->segmentation.feat[i].q_val, 8);
} else {
qyac = s->yac_qi;
}