File CVE-2023-5217.patch of Package libvpx.30873
Index: libvpx-1.11.0/vp8/encoder/onyx_if.c
===================================================================
--- libvpx-1.11.0.orig/vp8/encoder/onyx_if.c
+++ libvpx-1.11.0/vp8/encoder/onyx_if.c
@@ -1445,6 +1445,11 @@ void vp8_change_config(VP8_COMP *cpi, VP
last_h = cpi->oxcf.Height;
prev_number_of_layers = cpi->oxcf.number_of_layers;
+ if (cpi->initial_width) {
+ // TODO(https://crbug.com/1486441): Allow changing thread counts; the
+ // allocation is done once in vp8_create_compressor().
+ oxcf->multi_threaded = cpi->oxcf.multi_threaded;
+ }
cpi->oxcf = *oxcf;
switch (cpi->oxcf.Mode) {