diff options
author | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-02-25 10:21:14 +0000 |
---|---|---|
committer | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-02-25 10:21:14 +0000 |
commit | abe18b2f0203527d6024e0204f5df885bd3d6ad7 (patch) | |
tree | 6e3acd029faa11620fbaee917d165c36a1307fc9 /libmpcodecs | |
parent | 8173fd8929c5bc3ee4877b7d3cf92d5653137c00 (diff) |
more verbose message
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14815 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/dec_audio.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libmpcodecs/dec_audio.c b/libmpcodecs/dec_audio.c index f3023ae078..c063b97cc2 100644 --- a/libmpcodecs/dec_audio.c +++ b/libmpcodecs/dec_audio.c @@ -96,10 +96,11 @@ int init_audio_codec(sh_audio_t *sh_audio) if(!sh_audio->o_bps) sh_audio->o_bps=sh_audio->channels*sh_audio->samplerate*sh_audio->samplesize; - mp_msg(MSGT_DECAUDIO,MSGL_INFO,"AUDIO: %d Hz, %d ch, %d bit (0x%X), ratio: %d->%d (%3.1f kbit)\n", + mp_msg(MSGT_DECAUDIO,MSGL_INFO,"AUDIO: %d Hz, %d ch, %s, %3.1f kbit/%3.2f%% (ratio: %d->%d)\n", sh_audio->samplerate,sh_audio->channels, - sh_audio->samplesize*8,sh_audio->sample_format, - sh_audio->i_bps,sh_audio->o_bps,sh_audio->i_bps*8*0.001); + 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); sh_audio->a_out_buffer_size=sh_audio->a_buffer_size; sh_audio->a_out_buffer=sh_audio->a_buffer; |