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>2016-11-28 19:46:14 +0300
committerHendrik Leppkes <h.leppkes@gmail.com>2016-11-28 19:46:14 +0300
commitb66834630eafaf9b106a01d4c5b9183959cce2f1 (patch)
treedb8e82944d197d5154e2d261c31e462ce7afa485 /decoder
parent577f2367169d6c7d4bf4189fc16554e81c461705 (diff)
Zero-initialize sidedata buffers
Diffstat (limited to 'decoder')
-rw-r--r--decoder/LAVVideo/decoders/pixfmt.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/decoder/LAVVideo/decoders/pixfmt.cpp b/decoder/LAVVideo/decoders/pixfmt.cpp
index abdbbad3..573ec3cb 100644
--- a/decoder/LAVVideo/decoders/pixfmt.cpp
+++ b/decoder/LAVVideo/decoders/pixfmt.cpp
@@ -242,6 +242,8 @@ BYTE * AddLAVFrameSideData(LAVFrame *pFrame, GUID guidType, size_t size)
if (!pFrame->side_data[pFrame->side_data_count].data)
return NULL;
+ memset(pFrame->side_data[pFrame->side_data_count].data, 0, size);
+
pFrame->side_data_count++;
return pFrame->side_data[pFrame->side_data_count - 1].data;