| Index: source/libvpx/vp9/encoder/vp9_picklpf.c
|
| diff --git a/source/libvpx/vp9/encoder/vp9_picklpf.c b/source/libvpx/vp9/encoder/vp9_picklpf.c
|
| index 8e191038514b2495753c406c907d0cb7c27c4f96..1b1068e3789101b37c61bdb142785ccf6197262f 100644
|
| --- a/source/libvpx/vp9/encoder/vp9_picklpf.c
|
| +++ b/source/libvpx/vp9/encoder/vp9_picklpf.c
|
| @@ -92,8 +92,8 @@ static int search_filter_level(const YV12_BUFFER_CONFIG *sd, VP9_COMP *cpi,
|
| ss_err[filt_mid] = best_err;
|
|
|
| while (filter_step > 0) {
|
| - const int filt_high = MIN(filt_mid + filter_step, max_filter_level);
|
| - const int filt_low = MAX(filt_mid - filter_step, min_filter_level);
|
| + const int filt_high = VPXMIN(filt_mid + filter_step, max_filter_level);
|
| + const int filt_low = VPXMAX(filt_mid - filter_step, min_filter_level);
|
|
|
| // Bias against raising loop filter in favor of lowering it.
|
| int64_t bias = (best_err >> (15 - (filt_mid / 8))) * filter_step;
|
|
|