From 0a7abd58c8ccb15e3c743dd05a5df27f7c4a0189 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 23 Mar 2013 00:37:22 -0400 Subject: [PATCH] round hls framerate --- MediaBrowser.Api/Playback/Hls/VideoHlsService.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MediaBrowser.Api/Playback/Hls/VideoHlsService.cs b/MediaBrowser.Api/Playback/Hls/VideoHlsService.cs index 58224e3258..050391e813 100644 --- a/MediaBrowser.Api/Playback/Hls/VideoHlsService.cs +++ b/MediaBrowser.Api/Playback/Hls/VideoHlsService.cs @@ -143,6 +143,8 @@ namespace MediaBrowser.Api.Playback.Hls framerate = 23.976; } + framerate = Math.Round(framerate); + args += string.Format(" -r {0}", framerate); // Needed to ensure segments stay under 10 seconds