]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[libvpx] VP8: disallow thread count changes 2259/head
authorAndrey Volk <andywolk@gmail.com>
Tue, 3 Oct 2023 21:47:39 +0000 (00:47 +0300)
committerAndrey Volk <andywolk@gmail.com>
Tue, 3 Oct 2023 21:47:39 +0000 (00:47 +0300)
libs/libvpx/vp8/encoder/onyx_if.c

index c091594121114b5c2b61619b69afdbfe71b6fd35..00bab3f62611d4f5a7e426091d37c1738976c64b 100644 (file)
@@ -1447,6 +1447,11 @@ 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) {
+      // 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) {