From 465ce802d171211f00a34c5079b7cb12e0966e5e Mon Sep 17 00:00:00 2001 From: Basilisk-Dev Date: Wed, 4 Oct 2023 21:54:40 -0400 Subject: [PATCH] Issue #2332 - libvpx upgrade followup part 5 Port commits 39f9ab375b2bfd9e46df9695b78870cf1e9cf3c6 and ed7b08e6089de2dd9a1cee595d9ff7ed1fae919d to new libvpx version --- media/libvpx/libvpx/vp8/encoder/onyx_if.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/media/libvpx/libvpx/vp8/encoder/onyx_if.c b/media/libvpx/libvpx/vp8/encoder/onyx_if.c index 9717feb136..648a616c9e 100644 --- a/media/libvpx/libvpx/vp8/encoder/onyx_if.c +++ b/media/libvpx/libvpx/vp8/encoder/onyx_if.c @@ -1413,6 +1413,10 @@ void vp8_change_config(VP8_COMP *cpi, VP8_CONFIG *oxcf) { last_h = cpi->oxcf.Height; prev_number_of_layers = cpi->oxcf.number_of_layers; + if (cpi->initial_width) { + oxcf->multi_threaded = cpi->oxcf.multi_threaded; + } + cpi->oxcf = *oxcf; switch (cpi->oxcf.Mode) {