X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=net%2Ffreeswitch%2Fpatches%2F500-libvpx-VP8-disallow-thread-count-changes.patch;fp=net%2Ffreeswitch%2Fpatches%2F500-libvpx-VP8-disallow-thread-count-changes.patch;h=c8578841ac5ad0c4d3a4da604245ec80826b3c4d;hb=a1dd3169f80c192379cb278758423c7473e4e36e;hp=0000000000000000000000000000000000000000;hpb=b222f4fa492febe96ac4da661151e496b6127c97;p=feed%2Ftelephony.git 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 +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) {