changeset 344:a98a7f2dfc84 trunk

[svn] Display the MP4/AAC+ bitrate, instead of "VBR".
author nenolod
date Mon, 26 Dec 2005 12:42:45 -0800
parents 7b71e0dbb62d
children 9b19994a715c
files Plugins/Input/aac/src/libmp4.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/Input/aac/src/libmp4.c	Mon Dec 26 07:19:44 2005 -0800
+++ b/Plugins/Input/aac/src/libmp4.c	Mon Dec 26 12:42:45 2005 -0800
@@ -22,7 +22,6 @@
 #include <libaudacious/util.h>
 #include <libaudacious/titlestring.h>
 
-#define MP4_DESCRIPTION	"MP4 & MPEG2/4-AAC for bmp-0.9.7"
 #define MP4_VERSION	"ver.- 15 December 2004"
 #define LIBMP4V2_VERSION "1.2.0"
 #define MP4_ABOUT	"Written by ciberfred"
@@ -45,7 +44,7 @@
   {
     0,	// handle
     0,	// filename
-    MP4_DESCRIPTION,
+    "MP4 Audio Plugin",
     mp4_init,
     mp4_about,
     0,	// configuration
@@ -279,7 +278,7 @@
       guint		bufferSize = 0;
       gulong		samplerate;
       guchar		channels;
-      //guint		avgBitrate;
+      guint		avgBitrate;
       MP4Duration	duration;
       gulong		msDuration;
       MP4SampleId	numSamples;
@@ -304,7 +303,8 @@
       mp4_ip.output->open_audio(FMT_S16_NE, samplerate, channels);
       mp4_ip.output->flush(0);
       title = mp4_get_song_title(args);
-      mp4_ip.set_info(title, msDuration, -1, samplerate/1000, channels);
+      avgBitrate = MP4GetTrackBitRate(mp4file, mp4track);
+      mp4_ip.set_info(title, msDuration, avgBitrate, samplerate/1000, channels);
 
       while(bPlaying){
 	void*			sampleBuffer;