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 01cc519f9981c3491545b7a2ae81073c949e77c3..a95f0f46d5ce7ad77c675844e0f9cff8d9fe50df 100644 |
--- a/source/libvpx/vp9/encoder/vp9_picklpf.c |
+++ b/source/libvpx/vp9/encoder/vp9_picklpf.c |
@@ -39,8 +39,14 @@ static int64_t try_filter_frame(const YV12_BUFFER_CONFIG *sd, |
VP9_COMMON *const cm = &cpi->common; |
int64_t filt_err; |
- vp9_loop_filter_frame(cm->frame_to_show, cm, &cpi->td.mb.e_mbd, filt_level, 1, |
- partial_frame); |
+ if (cpi->num_workers > 1) |
+ vp9_loop_filter_frame_mt(cm->frame_to_show, cm, cpi->td.mb.e_mbd.plane, |
+ filt_level, 1, partial_frame, |
+ cpi->workers, cpi->num_workers, &cpi->lf_row_sync); |
+ else |
+ vp9_loop_filter_frame(cm->frame_to_show, cm, &cpi->td.mb.e_mbd, filt_level, |
+ 1, partial_frame); |
+ |
#if CONFIG_VP9_HIGHBITDEPTH |
if (cm->use_highbitdepth) { |
filt_err = vp9_highbd_get_y_sse(sd, cm->frame_to_show); |