From: Marco Date: Fri, 27 Jan 2017 18:42:29 +0000 (-0800) Subject: vp9: Fix to pick_filter_level for highbitdepth build. X-Git-Tag: v1.7.0~772^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d94d0ed12f4f9c43d332d7f848c52cfee8423e39;p=libvpx vp9: Fix to pick_filter_level for highbitdepth build. Change-Id: I53b3fa8bfc0a0717eb1b730c29f2b70060b1b1b7 --- diff --git a/vp9/encoder/vp9_picklpf.c b/vp9/encoder/vp9_picklpf.c index 6fc7cd1e3..c7e0c9ad3 100644 --- a/vp9/encoder/vp9_picklpf.c +++ b/vp9/encoder/vp9_picklpf.c @@ -180,11 +180,11 @@ void vp9_pick_filter_level(const YV12_BUFFER_CONFIG *sd, VP9_COMP *cpi, } #else int filt_guess = ROUND_POWER_OF_TWO(q * 20723 + 1015158, 18); +#endif // CONFIG_VP9_HIGHBITDEPTH if (cpi->oxcf.pass == 0 && cpi->oxcf.rc_mode == VPX_CBR && cpi->oxcf.content != VP9E_CONTENT_SCREEN && cm->frame_type != KEY_FRAME) filt_guess = 5 * filt_guess >> 3; -#endif // CONFIG_VP9_HIGHBITDEPTH if (cm->frame_type == KEY_FRAME) filt_guess -= 4; lf->filter_level = clamp(filt_guess, min_filter_level, max_filter_level); } else {