[vlc-commits] avcodec: reduce the default maximum number threads
Jean-Baptiste Kempf
git at videolan.org
Fri Feb 2 16:14:02 CET 2018
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Feb 2 16:08:04 2018 +0100| [d5e4b89167e97f3bac7bd1dbd76e2ea36f779aca] | committer: Jean-Baptiste Kempf
avcodec: reduce the default maximum number threads
Close #19490
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d5e4b89167e97f3bac7bd1dbd76e2ea36f779aca
---
modules/codec/avcodec/video.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index c763a2d754..3e9601eed9 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -556,7 +556,7 @@ int InitVideoDec( vlc_object_t *obj )
i_thread_count++;
//FIXME: take in count the decoding time
- i_thread_count = __MIN( i_thread_count, p_codec->id == AV_CODEC_ID_HEVC ? 12 : 6 );
+ i_thread_count = __MIN( i_thread_count, p_codec->id == AV_CODEC_ID_HEVC ? 10 : 6 );
}
i_thread_count = __MIN( i_thread_count, p_codec->id == AV_CODEC_ID_HEVC ? 32 : 16 );
msg_Dbg( p_dec, "allowing %d thread(s) for decoding", i_thread_count );
More information about the vlc-commits
mailing list