mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 05:47:14 -04:00
Revert "Fix segment_time_delta for ffmpeg 4.1"
This commit is contained in:
parent
edcfd8b565
commit
b2767eceff
@ -936,10 +936,10 @@ namespace MediaBrowser.Api.Playback.Hls
|
|||||||
|
|
||||||
var timeDeltaParam = string.Empty;
|
var timeDeltaParam = string.Empty;
|
||||||
|
|
||||||
if (isEncoding && state.TargetFramerate > 0)
|
if (isEncoding && startNumber > 0)
|
||||||
{
|
{
|
||||||
float startTime = 1 / (state.TargetFramerate.Value * 2);
|
var startTime = state.SegmentLength * startNumber;
|
||||||
timeDeltaParam = string.Format("-segment_time_delta {0}", Math.Round(startTime, 3));
|
timeDeltaParam = string.Format("-segment_time_delta -{0}", startTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
var segmentFormat = GetSegmentFileExtension(state.Request).TrimStart('.');
|
var segmentFormat = GetSegmentFileExtension(state.Request).TrimStart('.');
|
||||||
|
Loading…
Reference in New Issue
Block a user