1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-13 02:15:59 +00:00

Use calloc to ensure rmff_new_mdpr returns fully initialized data.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29623 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2009-09-02 10:35:06 +00:00
parent 3351bc2d18
commit 2726fe03ec

View File

@ -570,7 +570,7 @@ rmff_mdpr_t *rmff_new_mdpr(
uint32_t type_specific_len,
const char *type_specific_data ) {
rmff_mdpr_t *mdpr=malloc(sizeof(rmff_mdpr_t));
rmff_mdpr_t *mdpr=calloc(sizeof(rmff_mdpr_t),1);
mdpr->object_id=MDPR_TAG;
mdpr->object_version=0;