mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-01 15:07:49 +00:00
RPi4: drop kodi patch to increase thread count
this patch has been dropped in popcornmix's gbm branch as well Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
parent
9c9b3810fd
commit
384d24cc10
@ -1,27 +0,0 @@
|
|||||||
From aeba1b05a001de407ed1618ec6b8b2e961879cde Mon Sep 17 00:00:00 2001
|
|
||||||
From: popcornmix <popcornmix@gmail.com>
|
|
||||||
Date: Thu, 12 Mar 2020 18:05:20 +0000
|
|
||||||
Subject: [PATCH 4/8] DVDVideoCodecDRMPRIME: Increase thread count for hevc
|
|
||||||
|
|
||||||
rpi-vid hevc decoder works best with 3 threads
|
|
||||||
---
|
|
||||||
.../VideoPlayer/DVDCodecs/Video/DVDVideoCodecDRMPRIME.cpp | 3 +++
|
|
||||||
1 file changed, 3 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodecDRMPRIME.cpp b/xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodecDRMPRIME.cpp
|
|
||||||
index ba3c93d89d..f892b1140d 100644
|
|
||||||
--- a/xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodecDRMPRIME.cpp
|
|
||||||
+++ b/xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodecDRMPRIME.cpp
|
|
||||||
@@ -253,6 +253,9 @@ bool CDVDVideoCodecDRMPRIME::Open(CDVDStreamInfo& hints, CDVDCodecOptions& optio
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
+ // rpi-vid hevc decoder works best with 3 threads
|
|
||||||
+ if (pCodec->id == AV_CODEC_ID_HEVC)
|
|
||||||
+ m_pCodecContext->thread_count = 3;
|
|
||||||
|
|
||||||
m_pCodecContext->pix_fmt = AV_PIX_FMT_DRM_PRIME;
|
|
||||||
m_pCodecContext->opaque = static_cast<void*>(this);
|
|
||||||
--
|
|
||||||
2.20.1
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user