mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
xbmc: add PR5107
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
ee8a220796
commit
4f2d947c9e
@ -0,0 +1,36 @@
|
||||
From e86491994f73d0d9fbf5087429ad122fc5fb9f5b Mon Sep 17 00:00:00 2001
|
||||
From: fritsch <Peter.Fruehberger@gmail.com>
|
||||
Date: Sun, 27 Jul 2014 17:46:42 +0200
|
||||
Subject: [PATCH] SWCodec: Add VP9 as pure sw decoder to use multithreading
|
||||
|
||||
---
|
||||
xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.cpp | 6 ++++--
|
||||
1 file changed, 4 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.cpp b/xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.cpp
|
||||
index 0d4dcd5..2db5d99 100644
|
||||
--- a/xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.cpp
|
||||
+++ b/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)
|
||||
--
|
||||
1.9.3
|
||||
|
Loading…
x
Reference in New Issue
Block a user