# HG changeset patch # User diego # Date 1283902189 0 # Node ID 4a4dcc72da52a4aefebaac31f94dddd92eb2ffbc # Parent b2dc821f16a062cf4a77d97dce2de495193b1c8b Rename decode_audio() to mp_decode_audio(). The name clashes with the decode_audio function pointer in the ad_functions struct. diff -r b2dc821f16a0 -r 4a4dcc72da52 libmpcodecs/dec_audio.c --- a/libmpcodecs/dec_audio.c Tue Sep 07 22:04:35 2010 +0000 +++ b/libmpcodecs/dec_audio.c Tue Sep 07 23:29:49 2010 +0000 @@ -428,7 +428,7 @@ * In the former case sh_audio->a_out_buffer_len is always >= minlen * on return. In case of EOF/error it might or might not be. * Can reallocate sh_audio->a_out_buffer if needed to fit all filter output. */ -int decode_audio(sh_audio_t *sh_audio, int minlen) +int mp_decode_audio(sh_audio_t *sh_audio, int minlen) { // Indicates that a filter seems to be buffering large amounts of data int huge_filter_buffer = 0; diff -r b2dc821f16a0 -r 4a4dcc72da52 libmpcodecs/dec_audio.h --- a/libmpcodecs/dec_audio.h Tue Sep 07 22:04:35 2010 +0000 +++ b/libmpcodecs/dec_audio.h Tue Sep 07 23:29:49 2010 +0000 @@ -30,7 +30,7 @@ // dec_audio.c: void afm_help(void); int init_best_audio_codec(sh_audio_t *sh_audio, char** audio_codec_list, char** audio_fm_list); -int decode_audio(sh_audio_t *sh_audio, int minlen); +int mp_decode_audio(sh_audio_t *sh_audio, int minlen); void resync_audio_stream(sh_audio_t *sh_audio); void skip_audio_frame(sh_audio_t *sh_audio); void uninit_audio(sh_audio_t *sh_audio); diff -r b2dc821f16a0 -r 4a4dcc72da52 mencoder.c --- a/mencoder.c Tue Sep 07 22:04:35 2010 +0000 +++ b/mencoder.c Tue Sep 07 23:29:49 2010 +0000 @@ -301,7 +301,8 @@ while(sizeMAX_OUTBURST) len=MAX_OUTBURST; - if (decode_audio(sh_audio, len) < 0) at_eof=1; + if (mp_decode_audio(sh_audio, len) < 0) + at_eof = 1; if(len>sh_audio->a_out_buffer_len) len=sh_audio->a_out_buffer_len; fast_memcpy(buffer+size,sh_audio->a_out_buffer,len); sh_audio->a_out_buffer_len-=len; size+=len; diff -r b2dc821f16a0 -r 4a4dcc72da52 mplayer.c --- a/mplayer.c Tue Sep 07 22:04:35 2010 +0000 +++ b/mplayer.c Tue Sep 07 23:29:49 2010 +0000 @@ -2160,7 +2160,7 @@ current_module="decode_audio"; t = GetTimer(); if (!format_change) { - res = decode_audio(sh_audio, playsize); + res = mp_decode_audio(sh_audio, playsize); format_change = res == -2; } if (!format_change && res < 0) // EOF or error