summaryrefslogtreecommitdiff
path: root/vp9/encoder
diff options
context:
space:
mode:
authorJerome Jiang <jianj@google.com>2019-12-02 12:20:17 -0800
committerJerome Jiang <jianj@google.com>2019-12-02 12:20:17 -0800
commitd2a5e26359bec7fd4137e9cd005ff39375afb41c (patch)
tree065b77a7ebd467038f2276a1936a1d7c1f7c84f8 /vp9/encoder
parent2ba45e82912cadbf8a0931ea2e819772e7cb4730 (diff)
downloadlibvpx-d2a5e26359bec7fd4137e9cd005ff39375afb41c.tar
libvpx-d2a5e26359bec7fd4137e9cd005ff39375afb41c.tar.gz
libvpx-d2a5e26359bec7fd4137e9cd005ff39375afb41c.tar.bz2
libvpx-d2a5e26359bec7fd4137e9cd005ff39375afb41c.zip
Fix SVC regression in webrtc tests.
BUG=1029438 Change-Id: I4495fc7bb45e77e9d91059a5c6c4695d8da1bf34
Diffstat (limited to 'vp9/encoder')
-rw-r--r--vp9/encoder/vp9_encoder.c5
1 files changed, 4 insertions, 1 deletions
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;