summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-21 10:53:32 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-21 10:53:32 +0000
commitc06c4c637943ef503d91841959a3433670a49f4a (patch)
tree961c77ef44fe6531e11c73c7bb028eba23d33df0 /stream
parent0791efc730b69a7c93d97ecc1124486288e520f0 (diff)
downloadmpv-c06c4c637943ef503d91841959a3433670a49f4a.tar.bz2
mpv-c06c4c637943ef503d91841959a3433670a49f4a.tar.xz
Remove useless alloc casts
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25479 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream')
-rw-r--r--stream/asf_streaming.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/stream/asf_streaming.c b/stream/asf_streaming.c
index fc13db1a48..7a3f0b877c 100644
--- a/stream/asf_streaming.c
+++ b/stream/asf_streaming.c
@@ -208,7 +208,7 @@ static int asf_streaming_parse_header(int fd, streaming_ctrl_t* streaming_ctrl)
// 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 @@ static int asf_streaming_parse_header(int fd, streaming_ctrl_t* streaming_ctrl)
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 @@ static int asf_streaming_parse_header(int fd, streaming_ctrl_t* streaming_ctrl)
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;