changeset 22428:2c76886e24fc

Remove useless void * casts
author reimar
date Sun, 04 Mar 2007 14:24:03 +0000
parents 08045a99dddb
children e0c231d90b7c
files libmpdemux/demux_avs.c
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_avs.c	Sun Mar 04 14:11:44 2007 +0000
+++ b/libmpdemux/demux_avs.c	Sun Mar 04 14:24:03 2007 +0000
@@ -87,7 +87,7 @@
 
 AVS_T *initAVS(const char *filename)
 {   
-    AVS_T *AVS = (AVS_T *) malloc (sizeof(AVS_T));
+    AVS_T *AVS = malloc (sizeof(AVS_T));
     AVS_Value arg0 = avs_new_value_string(filename);
     AVS_Value args = avs_new_value_array(&arg0, 1);
     
@@ -165,7 +165,7 @@
 {
     AVS_VideoFrame *curr_frame;
     demux_packet_t *dp = NULL;
-    AVS_T *AVS = (AVS_T *) demuxer->priv;
+    AVS_T *AVS = demuxer->priv;
 
     if (ds == demuxer->video)
     {
@@ -234,7 +234,7 @@
 static demuxer_t* demux_open_avs(demuxer_t* demuxer)
 {
     int found = 0;
-    AVS_T *AVS = (AVS_T *) demuxer->priv;
+    AVS_T *AVS = demuxer->priv;
     AVS->frameno = 0;
     AVS->sampleno = 0;
 
@@ -301,7 +301,7 @@
         sh_video->fps = (float) ((float) AVS->video_info->fps_numerator / (float) AVS->video_info->fps_denominator);
         sh_video->frametime = 1.0 / sh_video->fps;
         
-        sh_video->bih = (BITMAPINFOHEADER*) malloc(sizeof(BITMAPINFOHEADER) + (256 * 4));
+        sh_video->bih = malloc(sizeof(BITMAPINFOHEADER) + (256 * 4));
         sh_video->bih->biCompression = sh_video->format;
         sh_video->bih->biBitCount = avs_bits_per_pixel(AVS->video_info);
         //sh_video->bih->biPlanes = 2;
@@ -328,7 +328,7 @@
         demuxer->audio->sh = sh_audio;
         sh_audio->ds = demuxer->audio;
         
-        sh_audio->wf = (WAVEFORMATEX*) malloc(sizeof(WAVEFORMATEX));
+        sh_audio->wf = malloc(sizeof(WAVEFORMATEX));
         sh_audio->wf->wFormatTag = sh_audio->format =
             (AVS->video_info->sample_type == AVS_SAMPLE_FLOAT) ? 0x3 : 0x1;
         sh_audio->wf->nChannels = sh_audio->channels = AVS->video_info->nchannels;
@@ -351,7 +351,7 @@
 static int demux_avs_control(demuxer_t *demuxer, int cmd, void *arg)
 {   
     sh_video_t *sh_video=demuxer->video->sh;
-    AVS_T *AVS = (AVS_T *) demuxer->priv;
+    AVS_T *AVS = demuxer->priv;
 
     switch(cmd)
     {
@@ -374,7 +374,7 @@
 
 static void demux_close_avs(demuxer_t* demuxer)
 {
-    AVS_T *AVS = (AVS_T *) demuxer->priv;
+    AVS_T *AVS = demuxer->priv;
 
     if (AVS)
     {
@@ -396,7 +396,7 @@
 {
     demux_stream_t *d_video=demuxer->video;
     sh_video_t *sh_video=d_video->sh;
-    AVS_T *AVS = (AVS_T *) demuxer->priv;
+    AVS_T *AVS = demuxer->priv;
     int video_pos=AVS->frameno;
     
     //mp_msg(MSGT_DEMUX, MSGL_V, "AVS: seek rel_seek_secs = %f - flags = %x\n", rel_seek_secs, flags);