[MPlayer-cvslog] r34827 - trunk/libmpcodecs/ad_libmad.c
reimar
subversion at mplayerhq.hu
Sat Mar 24 20:19:04 CET 2012
Author: reimar
Date: Sat Mar 24 20:19:03 2012
New Revision: 34827
Log:
Remove unnecessary casts.
Modified:
trunk/libmpcodecs/ad_libmad.c
Modified: trunk/libmpcodecs/ad_libmad.c
==============================================================================
--- trunk/libmpcodecs/ad_libmad.c Sat Mar 24 20:10:07 2012 (r34826)
+++ trunk/libmpcodecs/ad_libmad.c Sat Mar 24 20:19:03 2012 (r34827)
@@ -67,7 +67,7 @@ static int preinit(sh_audio_t *sh){
}
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 @@ return 0;
}
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 int init(sh_audio_t *sh){
}
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 inline signed int scale(mad_fixed
}
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 decode_audio(sh_audio_t *sh,u
}
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:
More information about the MPlayer-cvslog
mailing list