[FFmpeg-cvslog] vp9: clamp segmented lflvl before applying ref/mode deltas.
Ronald S. Bultje
git at videolan.org
Mon May 18 02:44:29 CEST 2015
ffmpeg | branch: master | Ronald S. Bultje <rsbultje at gmail.com> | Fri May 15 11:43:09 2015 -0400| [5de142d316a6f806e8a5faee4599f49cd26af11e] | committer: Ronald S. Bultje
vp9: clamp segmented lflvl before applying ref/mode deltas.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5de142d316a6f806e8a5faee4599f49cd26af11e
---
libavcodec/vp9.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c
index 8b1ef67..bc88bf9 100644
--- a/libavcodec/vp9.c
+++ b/libavcodec/vp9.c
@@ -800,9 +800,9 @@ static int decode_frame_header(AVCodecContext *ctx,
sh = s->filter.level >= 32;
if (s->segmentation.feat[i].lf_enabled) {
if (s->segmentation.absolute_vals)
- lflvl = s->segmentation.feat[i].lf_val;
+ lflvl = av_clip_uintp2(s->segmentation.feat[i].lf_val, 6);
else
- lflvl = s->filter.level + s->segmentation.feat[i].lf_val;
+ lflvl = av_clip_uintp2(s->filter.level + s->segmentation.feat[i].lf_val, 6);
} else {
lflvl = s->filter.level;
}
More information about the ffmpeg-cvslog
mailing list