You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
vp9: clip intermediates in dequant calculations.
This makes values consistent with libvpx.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user