[vlc-commits] avcodec: update default thread limits
Jean-Baptiste Kempf
git at videolan.org
Sun Oct 22 22:17:42 CEST 2017
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Oct 22 22:03:12 2017 +0200| [890c91148a3b9fa7a82f50eb2b45798b0c9de8de] | committer: Jean-Baptiste Kempf
avcodec: update default thread limits
This is totally blind, but let's see if we still see complaints...
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=890c91148a3b9fa7a82f50eb2b45798b0c9de8de
---
modules/codec/avcodec/video.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index f6aeb48783..01772b00bf 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -543,9 +543,9 @@ 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 ? 6 : 4 );
+ i_thread_count = __MIN( i_thread_count, p_codec->id == AV_CODEC_ID_HEVC ? 12 : 6 );
}
- i_thread_count = __MIN( i_thread_count, 16 );
+ 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 );
p_context->thread_count = i_thread_count;
p_context->thread_safe_callbacks = true;
More information about the vlc-commits
mailing list