diff options
author | Sam James <sam@gentoo.org> | 2022-03-22 16:53:01 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-03-22 17:02:02 +0000 |
commit | 377be0b52f115818ea3c2d00367f0b2b5c91b0f1 (patch) | |
tree | 17e9f762314d7cafba3159dbd671ca7f06084a0a /media-libs/xine-lib/files | |
parent | profiles: clang profile, add multilib madness (diff) | |
download | gentoo-377be0b52f115818ea3c2d00367f0b2b5c91b0f1.tar.gz gentoo-377be0b52f115818ea3c2d00367f0b2b5c91b0f1.tar.bz2 gentoo-377be0b52f115818ea3c2d00367f0b2b5c91b0f1.zip |
media-libs/xine-lib: fix automagic libaom, dav1d; fix build with dav1d-1.0.0
Closes: https://bugs.gentoo.org/835791
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/xine-lib/files')
-rw-r--r-- | media-libs/xine-lib/files/xine-lib-1.2.12-dav1d-1.0.0.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/media-libs/xine-lib/files/xine-lib-1.2.12-dav1d-1.0.0.patch b/media-libs/xine-lib/files/xine-lib-1.2.12-dav1d-1.0.0.patch new file mode 100644 index 000000000000..cb3253cf99a5 --- /dev/null +++ b/media-libs/xine-lib/files/xine-lib-1.2.12-dav1d-1.0.0.patch @@ -0,0 +1,22 @@ +https://bugs.gentoo.org/835791 +https://sourceforge.net/p/xine/tickets/11/ +--- a/src/video_dec/dav1d.c ++++ b/src/video_dec/dav1d.c +@@ -544,11 +544,17 @@ + + /* multithreading */ + ncpu = xine_cpu_count(); ++#if DAV1D_API_VERSION_MAJOR > 5 ++ settings.n_threads = ncpu + 1; ++ xprintf(stream->xine, XINE_VERBOSITY_DEBUG, LOG_MODULE ": " ++ "Using %d threads\n", settings.n_threads); ++#else + settings.n_frame_threads = (ncpu > 8) ? 4 : (ncpu < 2) ? 1 : ncpu/2; + settings.n_tile_threads = MAX(1, ncpu - settings.n_frame_threads + 1); + xprintf(stream->xine, XINE_VERBOSITY_DEBUG, LOG_MODULE ": " + "Using %d frame threads, %d tile threads\n", + settings.n_frame_threads, settings.n_tile_threads); ++#endif + + /* dri frame allocator */ + settings.allocator.cookie = this; |