changeset 34739:8e8688010194

Remove unnecessary casts.
author reimar
date Sat, 24 Mar 2012 19:19:03 +0000
parents fcff55a05c24
children 0eb4c719ca0c
files libmpcodecs/ad_libmad.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ad_libmad.c	Sat Mar 24 19:10:07 2012 +0000
+++ b/libmpcodecs/ad_libmad.c	Sat Mar 24 19:19:03 2012 +0000
@@ -67,7 +67,7 @@
 }
 
 static int read_frame(sh_audio_t *sh){
-  mad_decoder_t *this = (mad_decoder_t *) sh->context;
+  mad_decoder_t *this = sh->context;
   int len;
 
 while((len=demux_read_data(sh->ds,&sh->a_in_buffer[sh->a_in_buffer_len],
@@ -94,7 +94,7 @@
 }
 
 static int init(sh_audio_t *sh){
-  mad_decoder_t *this = (mad_decoder_t *) sh->context;
+  mad_decoder_t *this = sh->context;
 
   this->have_frame=read_frame(sh);
   if(!this->have_frame) return 0; // failed to sync...
@@ -108,7 +108,7 @@
 }
 
 static void uninit(sh_audio_t *sh){
-  mad_decoder_t *this = (mad_decoder_t *) sh->context;
+  mad_decoder_t *this = sh->context;
   mad_synth_finish (&this->synth);
   mad_frame_finish (&this->frame);
   mad_stream_finish(&this->stream);
@@ -131,7 +131,7 @@
 }
 
 static int decode_audio(sh_audio_t *sh,unsigned char *buf,int minlen,int maxlen){
-  mad_decoder_t *this = (mad_decoder_t *) sh->context;
+  mad_decoder_t *this = sh->context;
   int len=0;
 
   while(len<minlen && len+4608<=maxlen){
@@ -170,7 +170,7 @@
 }
 
 static int control(sh_audio_t *sh,int cmd,void* arg, ...){
-  mad_decoder_t *this = (mad_decoder_t *) sh->context;
+  mad_decoder_t *this = sh->context;
     // various optional functions you MAY implement:
     switch(cmd){
       case ADCTRL_RESYNC_STREAM: