aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoftworkz <softworkz@hotmail.com>2016-08-13 04:24:21 +0200
committerSoftworkz <softworkz@hotmail.com>2016-08-13 07:13:22 +0200
commit93346830eb28c430477c6cdf6285bcbbea1f2f2a (patch)
tree0a84ee681489cb7a48185456e9b96ba974c2c359
parente0e6c98e43047caa3869dd8bf69204c9ee8f4d7e (diff)
Fix incorrect calculation of content length
-rw-r--r--MediaBrowser.Api/Playback/Progressive/BaseProgressiveStreamingService.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.Api/Playback/Progressive/BaseProgressiveStreamingService.cs b/MediaBrowser.Api/Playback/Progressive/BaseProgressiveStreamingService.cs
index d6dea0fe5..f4cc9f4bc 100644
--- a/MediaBrowser.Api/Playback/Progressive/BaseProgressiveStreamingService.cs
+++ b/MediaBrowser.Api/Playback/Progressive/BaseProgressiveStreamingService.cs
@@ -383,7 +383,7 @@ namespace MediaBrowser.Api.Playback.Progressive
if (totalBitrate > 0 && state.RunTimeTicks.HasValue)
{
- return Convert.ToInt64(totalBitrate * TimeSpan.FromTicks(state.RunTimeTicks.Value).TotalSeconds);
+ return Convert.ToInt64(totalBitrate * TimeSpan.FromTicks(state.RunTimeTicks.Value).TotalSeconds / 8);
}
return null;