Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Garrett-Glaser <jason@x264.com>2011-02-04 10:37:30 +0300
committerMichael Niedermayer <michaelni@gmx.at>2011-02-06 22:31:44 +0300
commite9266a2be04ea505285e32e411ef6120e9cbeba4 (patch)
treededf34528e4a46db99935b478d96d4db6da25828 /libavcodec/vp8.c
parent9efa368f1953dc100d003c39d191cb5efce849b1 (diff)
VP8: slightly faster loopfilter sharpness logic
(cherry picked from commit 8a2c99b48688008dd0a01c4826161ad4f7c25436)
Diffstat (limited to 'libavcodec/vp8.c')
-rw-r--r--libavcodec/vp8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vp8.c b/libavcodec/vp8.c
index dce090f3e0..b10330af03 100644
--- a/libavcodec/vp8.c
+++ b/libavcodec/vp8.c
@@ -1487,7 +1487,7 @@ static av_always_inline void filter_level_for_mb(VP8Context *s, VP8Macroblock *m
interior_limit = filter_level;
if (s->filter.sharpness) {
- interior_limit >>= s->filter.sharpness > 4 ? 2 : 1;
+ interior_limit >>= (s->filter.sharpness + 3) >> 2;
interior_limit = FFMIN(interior_limit, 9 - s->filter.sharpness);
}
interior_limit = FFMAX(interior_limit, 1);