changeset 345:9b19994a715c trunk

[svn] ditto for samplerate... we should have full plugin compatibility now
author nenolod
date Mon, 26 Dec 2005 13:01:04 -0800
parents a98a7f2dfc84
children 430658951e30
files Plugins/Input/aac/src/libmp4.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/Input/aac/src/libmp4.c	Mon Dec 26 12:42:45 2005 -0800
+++ b/Plugins/Input/aac/src/libmp4.c	Mon Dec 26 13:01:04 2005 -0800
@@ -300,11 +300,12 @@
       msDuration = MP4ConvertFromTrackDuration(mp4file, mp4track, duration,
 					       MP4_MSECS_TIME_SCALE);
       numSamples = MP4GetTrackNumberOfSamples(mp4file, mp4track);
+      samplerate = MP4GetTrackTimeScale(mp4file, mp4track);
       mp4_ip.output->open_audio(FMT_S16_NE, samplerate, channels);
       mp4_ip.output->flush(0);
       title = mp4_get_song_title(args);
       avgBitrate = MP4GetTrackBitRate(mp4file, mp4track);
-      mp4_ip.set_info(title, msDuration, avgBitrate, samplerate/1000, channels);
+      mp4_ip.set_info(title, msDuration, avgBitrate, samplerate, channels);
 
       while(bPlaying){
 	void*			sampleBuffer;