c8578841ac5ad0c4d3a4da604245ec80826b3c4d
[feed/telephony.git] / net / freeswitch / patches / 500-libvpx-VP8-disallow-thread-count-changes.patch
1 From 6f9e72c585265d8def8a613b36cd4f524c201980 Mon Sep 17 00:00:00 2001
2 From: Andrey Volk <andywolk@gmail.com>
3 Date: Wed, 4 Oct 2023 00:47:39 +0300
4 Subject: [PATCH] [libvpx] VP8: disallow thread count changes
5
6 ---
7 libs/libvpx/vp8/encoder/onyx_if.c | 5 +++++
8 1 file changed, 5 insertions(+)
9
10 --- a/libs/libvpx/vp8/encoder/onyx_if.c
11 +++ b/libs/libvpx/vp8/encoder/onyx_if.c
12 @@ -1447,6 +1447,11 @@ void vp8_change_config(VP8_COMP *cpi, VP
13 last_h = cpi->oxcf.Height;
14 prev_number_of_layers = cpi->oxcf.number_of_layers;
15
16 + if (cpi->initial_width) {
17 + // TODO(https://crbug.com/1486441): Allow changing thread counts; the
18 + // allocation is done once in vp8_create_compressor().
19 + oxcf->multi_threaded = cpi->oxcf.multi_threaded;
20 + }
21 cpi->oxcf = *oxcf;
22
23 switch (cpi->oxcf.Mode) {