[vlc-commits] avcodec: reduce the default maximum number threads

Jean-Baptiste Kempf git at videolan.org
Fri Feb 2 16:14:22 CET 2018


vlc/vlc-3.0 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Feb  2 16:08:04 2018 +0100| [842a64f5ee09cd039eda891f41977d01e10f1035] | committer: Jean-Baptiste Kempf

avcodec: reduce the default maximum number threads

Close #19490

(cherry picked from commit d5e4b89167e97f3bac7bd1dbd76e2ea36f779aca)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=842a64f5ee09cd039eda891f41977d01e10f1035
---

 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 b056c1b86f..b7f2b8e3f3 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -542,7 +542,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