[MPlayer-cvslog] CVS: main/libmpcodecs dec_audio.c,1.35,1.36

Alex Beregszaszi syncmail at mplayerhq.hu
Fri Feb 25 11:21:17 CET 2005


CVS change done by Alex Beregszaszi

Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv17290

Modified Files:
	dec_audio.c 
Log Message:
more verbose message

Index: dec_audio.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/dec_audio.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- dec_audio.c	17 Jan 2005 17:27:39 -0000	1.35
+++ dec_audio.c	25 Feb 2005 10:21:14 -0000	1.36
@@ -96,10 +96,11 @@
   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;




More information about the MPlayer-cvslog mailing list