diff libmpdemux/asf_streaming.c @ 19062:83c3afeab35d

drops casts from void * on malloc/calloc from libmpdemux code
author reynaldo
date Thu, 13 Jul 2006 16:41:13 +0000
parents 4928dd61f136
children
line wrap: on
line diff
--- a/libmpdemux/asf_streaming.c	Thu Jul 13 16:17:24 2006 +0000
+++ b/libmpdemux/asf_streaming.c	Thu Jul 13 16:41:13 2006 +0000
@@ -267,7 +267,7 @@
       switch(ASF_LOAD_GUID_PREFIX(streamh->type)) {
       case 0xF8699E40 : // audio stream
 	if(asf_ctrl->audio_streams == NULL){
-	  asf_ctrl->audio_streams = (int*)malloc(sizeof(int));
+	  asf_ctrl->audio_streams = malloc(sizeof(int));
 	  asf_ctrl->n_audio = 1;
 	} else {
 	  asf_ctrl->n_audio++;
@@ -278,7 +278,7 @@
 	break;
       case 0xBC19EFC0 : // video stream
 	if(asf_ctrl->video_streams == NULL){
-	  asf_ctrl->video_streams = (int*)malloc(sizeof(int));
+	  asf_ctrl->video_streams = malloc(sizeof(int));
 	  asf_ctrl->n_video = 1;
 	} else {
 	  asf_ctrl->n_video++;
@@ -715,7 +715,7 @@
 	int done;
 	int auth_retry = 0;
 
-	asf_http_ctrl = (asf_http_streaming_ctrl_t*)malloc(sizeof(asf_http_streaming_ctrl_t));
+	asf_http_ctrl = malloc(sizeof(asf_http_streaming_ctrl_t));
 	if( asf_http_ctrl==NULL ) {
 		mp_msg(MSGT_NETWORK,MSGL_FATAL,MSGTR_MemAllocFailed);
 		return -1;