VP8: slightly faster loopfilter sharpness logic

(cherry picked from commit 8a2c99b486)
This commit is contained in:
Jason Garrett-Glaser 2011-02-03 23:37:30 -08:00 committed by Michael Niedermayer
parent 9efa368f19
commit e9266a2be0
1 changed files with 1 additions and 1 deletions

View File

@ -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);