Mercurial > mplayer.hg
diff libmpdemux/demux_fli.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 | 4d81dbdf46b9 |
line wrap: on
line diff
--- a/libmpdemux/demux_fli.c Thu Jul 13 16:17:24 2006 +0000 +++ b/libmpdemux/demux_fli.c Thu Jul 13 16:41:13 2006 +0000 @@ -69,7 +69,7 @@ static demuxer_t* demux_open_fli(demuxer_t* demuxer){ sh_video_t *sh_video = NULL; - fli_frames_t *frames = (fli_frames_t *)malloc(sizeof(fli_frames_t)); + fli_frames_t *frames = malloc(sizeof(fli_frames_t)); int frame_number; int speed; unsigned int frame_size; @@ -104,8 +104,8 @@ // allocate enough entries for the indices // audit: num_frames is 16bit so it is safe against overflow - frames->filepos = (off_t *)malloc(frames->num_frames * sizeof(off_t)); - frames->frame_size = (int *)malloc(frames->num_frames * sizeof(int)); + frames->filepos = malloc(frames->num_frames * sizeof(off_t)); + frames->frame_size = malloc(frames->num_frames * sizeof(int)); // create a new video stream header sh_video = new_sh_video(demuxer, 0);