diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-09-02 10:35:06 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-09-02 10:35:06 +0000 |
commit | 2726fe03ec8e0474c77765a53548fdc6b06926c4 (patch) | |
tree | 6ff8c42d217df11ad22cebf0b791844518060375 /stream | |
parent | 3351bc2d1807ad88d9871933819f8220d0f9d365 (diff) |
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
Diffstat (limited to 'stream')
-rw-r--r-- | stream/realrtsp/rmff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/realrtsp/rmff.c b/stream/realrtsp/rmff.c index c4430de145..3221df9dad 100644 --- a/stream/realrtsp/rmff.c +++ b/stream/realrtsp/rmff.c @@ -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; |