[MPlayer-cvslog] r29623 - trunk/stream/realrtsp/rmff.c

reimar subversion at mplayerhq.hu
Wed Sep 2 12:35:06 CEST 2009


Author: reimar
Date: Wed Sep  2 12:35:06 2009
New Revision: 29623

Log:
Use calloc to ensure rmff_new_mdpr returns fully initialized data.

Modified:
   trunk/stream/realrtsp/rmff.c

Modified: trunk/stream/realrtsp/rmff.c
==============================================================================
--- trunk/stream/realrtsp/rmff.c	Wed Sep  2 12:28:08 2009	(r29622)
+++ trunk/stream/realrtsp/rmff.c	Wed Sep  2 12:35:06 2009	(r29623)
@@ -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;


More information about the MPlayer-cvslog mailing list