aboutsummaryrefslogtreecommitdiffhomepage
path: root/libmpcodecs
diff options
context:
space:
mode:
authorGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-09-16 19:51:13 +0000
committerGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-09-16 19:51:13 +0000
commit6068c1846eea74b972e66096f44d9141c788f1b6 (patch)
treebce38ffb99c3afe488308fbef960e28ffdb7a8ed /libmpcodecs
parent378ded9169daf7da5f35e29829e03284f1b6127b (diff)
moved sh_audio initialization from dec_audio to demuxer.c to fix
-hr-mp3-seek bug (pts was -inf after seeking) and remove the workaround from demux_audio.c. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13358 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/dec_audio.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/libmpcodecs/dec_audio.c b/libmpcodecs/dec_audio.c
index 4bf93df094..bcdb819dfa 100644
--- a/libmpcodecs/dec_audio.c
+++ b/libmpcodecs/dec_audio.c
@@ -49,25 +49,6 @@ void afm_help(){
int init_audio_codec(sh_audio_t *sh_audio)
{
-
- // reset in/out buffer size/pointer:
- sh_audio->a_buffer_size=0;
- sh_audio->a_buffer=NULL;
- sh_audio->a_in_buffer_size=0;
- sh_audio->a_in_buffer=NULL;
-
- // Set up some common usefull defaults. ad->preinit() can override these:
-
- sh_audio->samplesize=2;
- sh_audio->sample_format=AFMT_S16_NE;
- sh_audio->samplerate=0;
- sh_audio->channels=0;
- sh_audio->i_bps=0; // input rate (bytes/sec)
- sh_audio->o_bps=0; // output rate (bytes/sec)
-
- sh_audio->audio_out_minsize=8192;/* default size, maybe not enough for Win32/ACM*/
- sh_audio->audio_in_minsize=0;
-
if(!mpadec->preinit(sh_audio))
{
mp_msg(MSGT_DECAUDIO,MSGL_ERR,MSGTR_ADecoderPreinitFailed);