[MPlayer-dev-eng] where is i_bps set?

Ivo ivop at euronet.nl
Fri Jul 29 02:49:54 CEST 2005


On Friday 29 July 2005 02:34, Andrew A. Gill wrote:
> 	sh->a_buffer_len=MP3_DecodeFrame(sh->a_buffer,-1);
> [...]
> 	sh->i_bps=MP3_bitrate*(1000/8);
>
> in main/libmpcodecs/ad_mp3lib.c for MP3, and I can probably find
> it for FLAC and Vorbis (Vorbis and WAV work just fine).
>
> Also, where does init() get called?

 In libmpcodecs/dec_audio.c [line 90....]  :

[..]
  if(!sh_audio->ad_driver->init(sh_audio)){
      mp_msg(MSGT_DECAUDIO,MSGL_WARN,MSGTR_ADecoderInitFailed);
      uninit_audio(sh_audio); // free buffers
      return 0;
  }
[..]

HTH,
--Ivo




More information about the MPlayer-dev-eng mailing list