Permalink
Browse files

Merge pull request #5107 from fritsch/vp9multi

SWCodec: Add VP9 as pure sw codec to use multithreading
  • Loading branch information...
2 parents bb2f501 + e864919 commit ce9b5d9b7378eb6bb0604247ac06e7cca574c486 @MartijnKaijser MartijnKaijser committed Aug 2, 2014
Showing with 4 additions and 2 deletions.
  1. +4 −2 xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.cpp
@@ -210,7 +210,8 @@ bool CDVDVideoCodecFFmpeg::Open(CDVDStreamInfo &hints, CDVDCodecOptions &options
break;
}
}
- else if (hints.codec == AV_CODEC_ID_HEVC)
+ else if (hints.codec == AV_CODEC_ID_HEVC
+ || hints.codec == AV_CODEC_ID_VP9)
m_isSWCodec = true;
if(pCodec == NULL)
@@ -295,7 +296,8 @@ bool CDVDVideoCodecFFmpeg::Open(CDVDStreamInfo &hints, CDVDCodecOptions &options
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_HEVC))
+ || pCodec->id == AV_CODEC_ID_HEVC
+ || pCodec->id == AV_CODEC_ID_VP9))
m_pCodecContext->thread_count = num_threads;
if (avcodec_open2(m_pCodecContext, pCodec, NULL) < 0)

0 comments on commit ce9b5d9

Please sign in to comment.