[vlc-commits] avcodec: increase max thread-count for HEVC in auto mode

Jean-Baptiste Kempf git at videolan.org
Sat Jan 14 15:54:27 CET 2017


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Jan 14 15:53:53 2017 +0100| [bddb7af51d1d6cb6e76680a0cac9370dd68b83fe] | committer: Jean-Baptiste Kempf

avcodec: increase max thread-count for HEVC in auto mode

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

 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 6392301..97a4016 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -478,7 +478,7 @@ int InitVideoDec( decoder_t *p_dec, AVCodecContext *p_context,
             i_thread_count++;
 
         //FIXME: take in count the decoding time
-        i_thread_count = __MIN( i_thread_count, 4 );
+        i_thread_count = __MIN( i_thread_count, p_codec->id == AV_CODEC_ID_HEVC ? 6 : 4 );
     }
     i_thread_count = __MIN( i_thread_count, 16 );
     msg_Dbg( p_dec, "allowing %d thread(s) for decoding", i_thread_count );



More information about the vlc-commits mailing list