display correct audio bitrate, samplerate and number of channels once

they are known for mplayer -identify



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19409 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ivo 2006-08-15 20:06:31 +00:00
parent f503cce428
commit 0242e630f9
1 changed files with 3 additions and 0 deletions

View File

@ -112,6 +112,9 @@ int init_audio_codec(sh_audio_t *sh_audio)
af_fmt2str_short(sh_audio->sample_format),
sh_audio->i_bps*8*0.001,((float)sh_audio->i_bps/sh_audio->o_bps)*100.0,
sh_audio->i_bps,sh_audio->o_bps);
mp_msg(MSGT_IDENTIFY,MSGL_INFO,"ID_AUDIO_BITRATE=%d\nID_AUDIO_RATE=%d\n"
"ID_AUDIO_NCH=%d\n", sh_audio->i_bps, sh_audio->samplerate,
sh_audio->channels );
sh_audio->a_out_buffer_size=sh_audio->a_buffer_size;
sh_audio->a_out_buffer=sh_audio->a_buffer;