diff options
Diffstat (limited to 'net/freeswitch/patches/500-libvpx-VP8-disallow-thread-count-changes.patch')
| -rw-r--r-- | net/freeswitch/patches/500-libvpx-VP8-disallow-thread-count-changes.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/net/freeswitch/patches/500-libvpx-VP8-disallow-thread-count-changes.patch b/net/freeswitch/patches/500-libvpx-VP8-disallow-thread-count-changes.patch new file mode 100644 index 0000000..c857884 --- /dev/null +++ b/net/freeswitch/patches/500-libvpx-VP8-disallow-thread-count-changes.patch @@ -0,0 +1,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) { |
