# HG changeset patch # User reimar # Date 1198234412 0 # Node ID bc4355ca432620f5fdbd14d3f8df1a631d642722 # Parent aacc1ec5cf43cd27e24c5d59c5388d343052641c Remove useless alloc casts diff -r aacc1ec5cf43 -r bc4355ca4326 stream/asf_streaming.c --- a/stream/asf_streaming.c Fri Dec 21 00:13:08 2007 +0000 +++ b/stream/asf_streaming.c Fri Dec 21 10:53:32 2007 +0000 @@ -208,7 +208,7 @@ // audit: do not overflow buffer_size if (size > SIZE_MAX - buffer_size) return -1; - buffer = (char*) malloc(size+buffer_size); + buffer = malloc(size+buffer_size); if(buffer == NULL) { mp_msg(MSGT_NETWORK,MSGL_FATAL,MSGTR_MPDEMUX_ASF_BufferMallocFailed,size+buffer_size); return -1; @@ -277,7 +277,7 @@ asf_ctrl->n_audio = 1; } else { asf_ctrl->n_audio++; - asf_ctrl->audio_streams = (int*)realloc(asf_ctrl->audio_streams, + asf_ctrl->audio_streams = realloc(asf_ctrl->audio_streams, asf_ctrl->n_audio*sizeof(int)); } asf_ctrl->audio_streams[asf_ctrl->n_audio-1] = streamh->stream_no; @@ -288,7 +288,7 @@ asf_ctrl->n_video = 1; } else { asf_ctrl->n_video++; - asf_ctrl->video_streams = (int*)realloc(asf_ctrl->video_streams, + asf_ctrl->video_streams = realloc(asf_ctrl->video_streams, asf_ctrl->n_video*sizeof(int)); } asf_ctrl->video_streams[asf_ctrl->n_video-1] = streamh->stream_no;