summaryrefslogtreecommitdiff
path: root/net/freeswitch/patches/500-libvpx-VP8-disallow-thread-count-changes.patch
blob: c8578841ac5ad0c4d3a4da604245ec80826b3c4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From 6f9e72c585265d8def8a613b36cd4f524c201980 Mon Sep 17 00:00:00 2001
From: Andrey Volk <andywolk@gmail.com>
Date: Wed, 4 Oct 2023 00:47:39 +0300
Subject: [PATCH] [libvpx] VP8: disallow thread count changes

---
 libs/libvpx/vp8/encoder/onyx_if.c | 5 +++++
 1 file changed, 5 insertions(+)

--- a/libs/libvpx/vp8/encoder/onyx_if.c
+++ b/libs/libvpx/vp8/encoder/onyx_if.c
@@ -1447,6 +1447,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) {