diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2016-11-28 19:46:14 +0300 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2016-11-28 19:46:14 +0300 |
commit | b66834630eafaf9b106a01d4c5b9183959cce2f1 (patch) | |
tree | db8e82944d197d5154e2d261c31e462ce7afa485 /decoder | |
parent | 577f2367169d6c7d4bf4189fc16554e81c461705 (diff) |
Zero-initialize sidedata buffers
Diffstat (limited to 'decoder')
-rw-r--r-- | decoder/LAVVideo/decoders/pixfmt.cpp | 2 |
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; |