Skip to content

Commit

Permalink
Zero-initialize sidedata buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevcairiel committed Nov 28, 2016
1 parent 577f236 commit b668346
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions decoder/LAVVideo/decoders/pixfmt.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit b668346

Please sign in to comment.