summaryrefslogtreecommitdiff
path: root/media
diff options
context:
space:
mode:
authorBasilisk-Dev <basiliskdev@protonmail.com>2023-09-28 09:49:10 -0400
committerBasilisk-Dev <basiliskdev@protonmail.com>2023-09-28 09:49:10 -0400
commited7b08e6089de2dd9a1cee595d9ff7ed1fae919d (patch)
tree775b195a54ef8a17feaa29cab69b47e96df6d864 /media
parentac24db13efafdd2a973cd11e70f3ad7e2e93b233 (diff)
downloaduxp-ed7b08e6089de2dd9a1cee595d9ff7ed1fae919d.tar.gz
Cherry-pick upstream libvpx fix
Backport of https://hg.mozilla.org/releases/mozilla-esr115/rev/5241232a3292943bd59ff1704eab60fee3cbc9d1 Addresses CVE-2023-5217
Diffstat (limited to 'media')
-rw-r--r--media/libvpx/vp8/encoder/onyx_if.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/media/libvpx/vp8/encoder/onyx_if.c b/media/libvpx/vp8/encoder/onyx_if.c
index 40e29e191a..0cd3e04503 100644
--- a/media/libvpx/vp8/encoder/onyx_if.c
+++ b/media/libvpx/vp8/encoder/onyx_if.c
@@ -1557,6 +1557,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)