summaryrefslogtreecommitdiff
path: root/audio/daapd/patches
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2007-02-09 20:32:38 +0000
committerdrochner <drochner@pkgsrc.org>2007-02-09 20:32:38 +0000
commit5932fd122bf990e43c00e20e2212673c9fe9d654 (patch)
tree596a71892ea12ee5e24ec614833118880eb84295 /audio/daapd/patches
parent5f6e6b5e4cc9fe333fe20c9aa8030e7b271473e3 (diff)
downloadpkgsrc-5932fd122bf990e43c00e20e2212673c9fe9d654.tar.gz
build against libmp4v2 instead of the full mpeg4ip and bump PKGREVISION
where the default build is affected
Diffstat (limited to 'audio/daapd/patches')
-rw-r--r--audio/daapd/patches/patch-af13
1 files changed, 13 insertions, 0 deletions
diff --git a/audio/daapd/patches/patch-af b/audio/daapd/patches/patch-af
new file mode 100644
index 00000000000..06ee965c619
--- /dev/null
+++ b/audio/daapd/patches/patch-af
@@ -0,0 +1,13 @@
+$NetBSD: patch-af,v 1.1 2007/02/09 20:32:38 drochner Exp $
+
+--- db.cc.orig 2007-02-09 16:49:38.000000000 +0100
++++ db.cc
+@@ -325,7 +325,7 @@ void Database::addM4a( std::string& path
+ MP4TrackId trackId = MP4FindTrackId(mp4file, 0);
+ u32 timeScale = MP4GetTrackTimeScale(mp4file, trackId);
+ MP4Duration trackDuration = MP4GetTrackDuration(mp4file, trackId);
+- double msDuration = UINT64_TO_DOUBLE(MP4ConvertFromTrackDuration(mp4file, trackId, trackDuration, MP4_MSECS_TIME_SCALE));
++ double msDuration = (double)MP4ConvertFromTrackDuration(mp4file, trackId, trackDuration, MP4_MSECS_TIME_SCALE);
+ u32 avgBitRate = MP4GetTrackBitRate(mp4file, trackId);
+ song->time = (u32) (msDuration);
+ song->bitrate = (u16) ((avgBitRate + 500) / 1000);