1 $NetBSD: patch-af,v 1.1 2007/02/09 20:32:38 drochner Exp $
3 --- db.cc.orig 2007-02-09 16:49:38.000000000 +0100
5 @@ -325,7 +325,7 @@ void Database::addM4a( std::string& path
6 MP4TrackId trackId = MP4FindTrackId(mp4file, 0);
7 u32 timeScale = MP4GetTrackTimeScale(mp4file, trackId);
8 MP4Duration trackDuration = MP4GetTrackDuration(mp4file, trackId);
9 - double msDuration = UINT64_TO_DOUBLE(MP4ConvertFromTrackDuration(mp4file, trackId, trackDuration, MP4_MSECS_TIME_SCALE));
10 + double msDuration = (double)MP4ConvertFromTrackDuration(mp4file, trackId, trackDuration, MP4_MSECS_TIME_SCALE);
11 u32 avgBitRate = MP4GetTrackBitRate(mp4file, trackId);
12 song->time = (u32) (msDuration);
13 song->bitrate = (u16) ((avgBitRate + 500) / 1000);