Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/LAVFilters.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2017-05-18 20:06:10 +0300
committerHendrik Leppkes <h.leppkes@gmail.com>2017-05-18 20:07:58 +0300
commitf72d5089a4104151efa7afc24410807ee5cea3fb (patch)
tree7c7982ec3a70d76b9055af95cae0c59765655dc2
parent81ed0ac8c29fa38bb85168a6825bcdf646f5b690 (diff)
Support P010 software output to EVR on recent Windows 10 builds
The problem in EVR seems to have been resolved, and it can now properly handle 10-bit input.
-rw-r--r--decoder/LAVVideo/LAVVideo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/decoder/LAVVideo/LAVVideo.cpp b/decoder/LAVVideo/LAVVideo.cpp
index 1b6aa140..e26c536f 100644
--- a/decoder/LAVVideo/LAVVideo.cpp
+++ b/decoder/LAVVideo/LAVVideo.cpp
@@ -897,7 +897,8 @@ HRESULT CLAVVideo::CompleteConnect(PIN_DIRECTION dir, IPin *pReceivePin)
HRESULT hr = S_OK;
if (dir == PINDIR_OUTPUT) {
BOOL bFailNonDXVA = false;
- if (m_pOutput->CurrentMediaType().subtype == MEDIASUBTYPE_P010 || m_pOutput->CurrentMediaType().subtype == MEDIASUBTYPE_P016) {
+ // Fail P010 software connections before Windows 10 Creators Update (presumably it was fixed before Creators already, but this is definitely a safe known condition)
+ if (!IsWindows10BuildOrNewer(15063) && (m_pOutput->CurrentMediaType().subtype == MEDIASUBTYPE_P010 || m_pOutput->CurrentMediaType().subtype == MEDIASUBTYPE_P016)) {
// Check if we're connecting to EVR
IBaseFilter *pFilter = GetFilterFromPin(pReceivePin);
if (pFilter != nullptr) {