Skip to content

Commit

Permalink
hevc: enable multi threaded decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta committed Feb 15, 2014
1 parent da49d8d commit 25e46ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.cpp
Expand Up @@ -299,7 +299,8 @@ bool CDVDVideoCodecFFmpeg::Open(CDVDStreamInfo &hints, CDVDCodecOptions &options
int num_threads = std::min(8 /*MAX_THREADS*/, g_cpuInfo.getCPUCount());
if( num_threads > 1 && !hints.software && m_pHardware == NULL // thumbnail extraction fails when run threaded
&& ( pCodec->id == AV_CODEC_ID_H264
|| pCodec->id == AV_CODEC_ID_MPEG4 ))
|| pCodec->id == AV_CODEC_ID_MPEG4
|| pCodec->id == AV_CODEC_ID_HEVC))

This comment has been minimized.

Copy link
@fritsch

fritsch Feb 16, 2014

ifdef AV_CODEC_ID_HEVC might want to add this?

But as no backport is planned, might not be needed. I can drop mine from the swfilter

This comment has been minimized.

Copy link
@FernetMenta

FernetMenta Feb 16, 2014

Author Owner

I won't do any backports for this.

m_pCodecContext->thread_count = num_threads;

if (avcodec_open2(m_pCodecContext, pCodec, NULL) < 0)
Expand Down

0 comments on commit 25e46ec

Please sign in to comment.