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:
-rw-r--r--decoder/LAVVideo/decoders/dxva2dec.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/decoder/LAVVideo/decoders/dxva2dec.cpp b/decoder/LAVVideo/decoders/dxva2dec.cpp
index a1e87753..3609a0a7 100644
--- a/decoder/LAVVideo/decoders/dxva2dec.cpp
+++ b/decoder/LAVVideo/decoders/dxva2dec.cpp
@@ -1534,6 +1534,10 @@ __forceinline bool CDecDXVA2::CopyFrame(LAVFrame *pFrame)
pFrame->destruct = nullptr;
pFrame->priv_data = nullptr;
+ // side-data shall not be copied to tmpFrame
+ tmpFrame.side_data = nullptr;
+ tmpFrame.side_data_count = 0;
+
// Allocate memory buffers
hr = AllocLAVFrameBuffers(pFrame, (pFrame->format == LAVPixFmt_P016) ? (LockedRect.Pitch >> 1) : LockedRect.Pitch);
if (FAILED(hr)) {