From d2a5e26359bec7fd4137e9cd005ff39375afb41c Mon Sep 17 00:00:00 2001 From: Jerome Jiang Date: Mon, 2 Dec 2019 12:20:17 -0800 Subject: [PATCH] Fix SVC regression in webrtc tests. BUG=1029438 Change-Id: I4495fc7bb45e77e9d91059a5c6c4695d8da1bf34 --- vp9/encoder/vp9_encoder.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.40.0