From: Jerome Jiang Date: Mon, 2 Dec 2019 20:20:17 +0000 (-0800) Subject: Fix SVC regression in webrtc tests. X-Git-Tag: v1.8.2~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d2a5e26359bec7fd4137e9cd005ff39375afb41c;p=libvpx Fix SVC regression in webrtc tests. BUG=1029438 Change-Id: I4495fc7bb45e77e9d91059a5c6c4695d8da1bf34 --- diff --git a/vp9/encoder/vp9_encoder.c b/vp9/encoder/vp9_encoder.c index 8ca7eb653..c7610ef06 100644 --- a/vp9/encoder/vp9_encoder.c +++ b/vp9/encoder/vp9_encoder.c @@ -2171,6 +2171,8 @@ static void init_ref_frame_bufs(VP9_COMMON *cm) { } } +static void init_motion_estimation(VP9_COMP *cpi); + static void update_initial_width(VP9_COMP *cpi, int use_highbitdepth, int subsampling_x, int subsampling_y) { VP9_COMMON *const cm = &cpi->common; @@ -2190,7 +2192,8 @@ static void update_initial_width(VP9_COMP *cpi, int use_highbitdepth, #if CONFIG_VP9_HIGHBITDEPTH cm->use_highbitdepth = use_highbitdepth; #endif - + alloc_util_frame_buffers(cpi); + init_motion_estimation(cpi); cpi->initial_width = cm->width; cpi->initial_height = cm->height; cpi->initial_mbs = cm->MBs;