From 0242e630f9029dd4b6f39b576b49c7b1abcc973c Mon Sep 17 00:00:00 2001 From: ivo Date: Tue, 15 Aug 2006 20:06:31 +0000 Subject: [PATCH] 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 --- libmpcodecs/dec_audio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libmpcodecs/dec_audio.c b/libmpcodecs/dec_audio.c index 2916fe739c..9bdb0732b2 100644 --- a/libmpcodecs/dec_audio.c +++ b/libmpcodecs/dec_audio.c @@ -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;