From d4797820dbeec952d1ef9eaab1cdc2d4c723ac3e Mon Sep 17 00:00:00 2001 From: LukePulverenti Date: Tue, 12 Mar 2013 12:18:26 -0400 Subject: [PATCH] revised the framerate fix --- .../Providers/MediaInfo/BaseFFProbeProvider.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/MediaBrowser.Controller/Providers/MediaInfo/BaseFFProbeProvider.cs b/MediaBrowser.Controller/Providers/MediaInfo/BaseFFProbeProvider.cs index d09ca705c..c9f184fcf 100644 --- a/MediaBrowser.Controller/Providers/MediaInfo/BaseFFProbeProvider.cs +++ b/MediaBrowser.Controller/Providers/MediaInfo/BaseFFProbeProvider.cs @@ -266,9 +266,12 @@ namespace MediaBrowser.Controller.Providers.MediaInfo if (parts.Length == 2) { - result = float.Parse(parts[0]) / float.Parse(parts[1]); + result = float.Parse(parts[0])/float.Parse(parts[1]); + } + else + { + result = float.Parse(parts[0]); } - result = float.Parse(parts[0]); return float.IsNaN(result) ? (float?)null : result; }