# HG changeset patch # User ivo # Date 1155672391 0 # Node ID 84a34f62918dac0f5a5d71e6d7010ddd9ad712f7 # Parent 0b2134ec9adc95b9af94de1a0602733dadab8d1a display correct audio bitrate, samplerate and number of channels once they are known for mplayer -identify diff -r 0b2134ec9adc -r 84a34f62918d libmpcodecs/dec_audio.c --- a/libmpcodecs/dec_audio.c Tue Aug 15 19:51:57 2006 +0000 +++ b/libmpcodecs/dec_audio.c Tue Aug 15 20:06:31 2006 +0000 @@ -112,6 +112,9 @@ 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;