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-08-08 12:20:10 +0300
committerHendrik Leppkes <h.leppkes@gmail.com>2017-08-08 12:20:27 +0300
commitb915ed946fea2baebd1f278285f25742428eaf92 (patch)
treebfdc49a944e194d35527c03abeabb265157d4690 /decoder/LAVVideo
parentdb12ade281bf334a80d5220e616a240f041fcf91 (diff)
Fix sidedata handling in DeDirectFrame
Diffstat (limited to 'decoder/LAVVideo')
-rw-r--r--decoder/LAVVideo/LAVVideo.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/decoder/LAVVideo/LAVVideo.cpp b/decoder/LAVVideo/LAVVideo.cpp
index 398ae854..257f3fea 100644
--- a/decoder/LAVVideo/LAVVideo.cpp
+++ b/decoder/LAVVideo/LAVVideo.cpp
@@ -1472,6 +1472,10 @@ HRESULT CLAVVideo::DeDirectFrame(LAVFrame *pFrame, bool bDisableDirectMode)
pFrame->direct_unlock = nullptr;
memset(pFrame->data, 0, sizeof(pFrame->data));
+ // sidedata remains on the main frame
+ tmpFrame.side_data = nullptr;
+ tmpFrame.side_data_count = 0;
+
LAVDirectBuffer buffer;
if (tmpFrame.direct_lock(&tmpFrame, &buffer)) {
HRESULT hr = AllocLAVFrameBuffers(pFrame, buffer.stride[0] / desc.codedbytes);