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:
Diffstat (limited to 'decoder/LAVVideo/Filtering.cpp')
-rw-r--r--decoder/LAVVideo/Filtering.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/decoder/LAVVideo/Filtering.cpp b/decoder/LAVVideo/Filtering.cpp
index c07ec49e..05187e23 100644
--- a/decoder/LAVVideo/Filtering.cpp
+++ b/decoder/LAVVideo/Filtering.cpp
@@ -128,6 +128,9 @@ HRESULT CLAVVideo::Filter(LAVFrame *pFrame)
if (!m_pFilterGraph)
goto deliver;
+ if (pFrame->direct)
+ DeDirectFrame(pFrame, true);
+
AVFrame *in_frame = nullptr;
BOOL refcountedFrame = (m_Decoder.HasThreadSafeBuffers() == S_OK);
// When flushing, we feed a NULL frame