Remove configuration of global_header flag

This commit is contained in:
Waldemar Tomme 2020-01-21 06:48:25 +01:00
parent 57aec873d0
commit ef487441d1

View File

@ -2750,8 +2750,6 @@ namespace MediaBrowser.Controller.MediaEncoding
args += " -mpegts_m2ts_mode 1";
}
var supportsGlobalHeaderFlag = state.OutputContainer != "mkv";
if (string.Equals(videoCodec, "copy", StringComparison.OrdinalIgnoreCase))
{
if (state.VideoStream != null
@ -2772,11 +2770,6 @@ namespace MediaBrowser.Controller.MediaEncoding
if (!state.RunTimeTicks.HasValue)
{
if(supportsGlobalHeaderFlag)
{
args += " -flags -global_header";
}
args += " -fflags +genpts";
}
}
@ -2822,11 +2815,6 @@ namespace MediaBrowser.Controller.MediaEncoding
{
args += " " + qualityParam.Trim();
}
if (supportsGlobalHeaderFlag && !state.RunTimeTicks.HasValue)
{
args += " -flags -global_header";
}
}
if (!string.IsNullOrEmpty(state.OutputVideoSync))