diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2017-08-08 12:20:10 +0300 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2017-08-08 12:20:27 +0300 |
commit | b915ed946fea2baebd1f278285f25742428eaf92 (patch) | |
tree | bfdc49a944e194d35527c03abeabb265157d4690 /decoder/LAVVideo | |
parent | db12ade281bf334a80d5220e616a240f041fcf91 (diff) |
Fix sidedata handling in DeDirectFrame
Diffstat (limited to 'decoder/LAVVideo')
-rw-r--r-- | decoder/LAVVideo/LAVVideo.cpp | 4 |
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); |