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:
parent
eaff36c973
commit
48f641a18b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user