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
7 libs/libvpx/vp8/encoder/onyx_if.c | 5 +++++
8 1 file changed, 5 insertions(+)
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;
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;
23 switch (cpi->oxcf.Mode) {