aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorJason Garrett-Glaser <jason@x264.com>2011-02-03 23:37:30 -0800
committerJason Garrett-Glaser <jason@x264.com>2011-02-04 04:51:22 -0800
commit8a2c99b48688008dd0a01c4826161ad4f7c25436 (patch)
tree96ec36ed9cd1aded919433ac37ddb4487bb53282 /libavcodec
parent79dec1541bf83fb587aee9a002649ad1fe038990 (diff)
downloadffmpeg-8a2c99b48688008dd0a01c4826161ad4f7c25436.tar.gz
VP8: slightly faster loopfilter sharpness logic
Diffstat (limited to 'libavcodec')
-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);