Author: ranger Date: Tue Sep 2 17:40:30 2008 New Revision: 1240 URL: <http://svn.finkproject.org/websvn/listing.php?sc=1&rev=1240&repname=user%3a+ranger> Log: patch updated
Modified: trunk/experimental/10.4/main/finkinfo/kde/amarok2.patch Modified: trunk/experimental/10.4/main/finkinfo/kde/amarok2.patch URL: <http://svn.finkproject.org/websvn/diff.php?path=/trunk/experimental/10.4/main/finkinfo/kde/amarok2.patch&rev=1240&repname=user%3a+ranger> ============================================================================== --- trunk/experimental/10.4/main/finkinfo/kde/amarok2.patch (original) +++ trunk/experimental/10.4/main/finkinfo/kde/amarok2.patch Tue Sep 2 17:40:30 2008 @@ -21,3 +21,15 @@ #include "mp4properties.h" +diff -Nurd amarok-1.90/src/metadata/wav/wavproperties.cpp amarok-1.90-new/src/metadata/wav/wavproperties.cpp +--- amarok-1.90/src/metadata/wav/wavproperties.cpp 2008-08-19 19:15:19.000000000 -0400 ++++ amarok-1.90-new/src/metadata/wav/wavproperties.cpp 2008-08-31 08:07:10.000000000 -0400 +@@ -103,5 +103,7 @@ + m_channels = ntohs(swap16(header.num_channels)); + m_sampleRate = ntohl(swap32(header.num_samples_per_sec)); + m_bitrate = ntohl(swap32(header.num_avg_bytes_per_sec)) * 8 / 1000; +- m_length = ntohl(swap32(header.num_data_bytes))/ntohl(swap32(header.num_avg_bytes_per_sec)); ++ if (header.num_avg_bytes_per_sec > 0) { ++ m_length = ntohl(swap32(header.num_data_bytes))/ntohl(swap32(header.num_avg_bytes_per_sec)); ++ } + } ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Fink-commits mailing list Fink-commits@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.cvs