[vlc-commits] avcodec: update default thread limits

Jean-Baptiste Kempf git at videolan.org
Sun Oct 22 22:04:03 CEST 2017


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Oct 22 22:03:12 2017 +0200| [1b11c9f8861d0d1d7fa2cf9f36eb5c433228d7e0] | 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=1b11c9f8861d0d1d7fa2cf9f36eb5c433228d7e0
---

 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..d714974a2c 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 ? 6 : 12 );
     }
-    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