Author: abock
Date: 2006-01-14 14:57:17 -0500 (Sat, 14 Jan 2006)
New Revision: 55580
Modified:
trunk/entagged-sharp/src/Ogg/Util/OggInfoReader.cs
Log:
2006-01-14 Aaron Bockover <[EMAIL PROTECTED]>
* src/Ogg/Util/OggInfoReader.cs: Fixed bitrate calculation oversight
by using duration.TotalSeconds (was duration.Seconds, which is remainging)
Modified: trunk/entagged-sharp/src/Ogg/Util/OggInfoReader.cs
===================================================================
--- trunk/entagged-sharp/src/Ogg/Util/OggInfoReader.cs 2006-01-14 19:36:50 UTC
(rev 55579)
+++ trunk/entagged-sharp/src/Ogg/Util/OggInfoReader.cs 2006-01-14 19:57:17 UTC
(rev 55580)
@@ -109,7 +109,7 @@
info.Vbr = true;
}
else {
- info.Bitrate = ComputeBitrate(
info.Duration.TotalSeconds, raf.Length );
+ info.Bitrate = ComputeBitrate(
(int)info.Duration.TotalSeconds, raf.Length );
info.Vbr = true;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches