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-06 15:41:06 +0300
committerHendrik Leppkes <h.leppkes@gmail.com>2017-08-06 15:41:24 +0300
commitdb12ade281bf334a80d5220e616a240f041fcf91 (patch)
treef8a07c47203ef4b6eda784e260dbd9cc10e5ae24 /decoder/LAVVideo
parenta1f078cecc80bf8f057cb1e8b69d6b7f539e7618 (diff)
dxva2: properly preserve sidedata in copy-back mode
Diffstat (limited to 'decoder/LAVVideo')
-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)) {