Merge pull request #664 from jellyfin/revert-639-ffmpeg4.1

Revert "Fix segment_time_delta for ffmpeg 4.1"
This commit is contained in:
Andrew Rabert 2019-01-21 20:21:36 -05:00 committed by GitHub
commit 13f1ea2c19

View File

@ -936,10 +936,10 @@ namespace MediaBrowser.Api.Playback.Hls
var timeDeltaParam = string.Empty;
if (isEncoding && state.TargetFramerate > 0)
if (isEncoding && startNumber > 0)
{
float startTime = 1 / (state.TargetFramerate.Value * 2);
timeDeltaParam = string.Format("-segment_time_delta {0}", Math.Round(startTime, 3));
var startTime = state.SegmentLength * startNumber;
timeDeltaParam = string.Format("-segment_time_delta -{0}", startTime);
}
var segmentFormat = GetSegmentFileExtension(state.Request).TrimStart('.');