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:23:09 +0300
committerHendrik Leppkes <h.leppkes@gmail.com>2017-08-08 12:23:48 +0300
commit1329205677d9571cdbdc513b0a1c1c8fec8142c0 (patch)
tree517553498bdf0ce7088330b718d74267d3f1ca4b /decoder
parentb915ed946fea2baebd1f278285f25742428eaf92 (diff)
Fix side data handling in DXVA2-Native sequence frames
Diffstat (limited to 'decoder')
-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 257f3fea..e951dc92 100644
--- a/decoder/LAVVideo/LAVVideo.cpp
+++ b/decoder/LAVVideo/LAVVideo.cpp
@@ -1635,6 +1635,10 @@ HRESULT CLAVVideo::DeliverToRenderer(LAVFrame *pFrame)
m_pLastSequenceFrame->destruct = nullptr;
m_pLastSequenceFrame->priv_data = nullptr;
+ // don't copy side data
+ m_pLastSequenceFrame->side_data = nullptr;
+ m_pLastSequenceFrame->side_data_count = 0;
+
IDirect3DSurface9 *pSurface = (IDirect3DSurface9 *)m_pLastSequenceFrame->data[3];
IDirect3DDevice9 *pDevice = nullptr;