mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Remove configuration of global_header flag
This commit is contained in:
parent
57aec873d0
commit
ef487441d1
@ -2750,8 +2750,6 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
args += " -mpegts_m2ts_mode 1";
|
args += " -mpegts_m2ts_mode 1";
|
||||||
}
|
}
|
||||||
|
|
||||||
var supportsGlobalHeaderFlag = state.OutputContainer != "mkv";
|
|
||||||
|
|
||||||
if (string.Equals(videoCodec, "copy", StringComparison.OrdinalIgnoreCase))
|
if (string.Equals(videoCodec, "copy", StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
if (state.VideoStream != null
|
if (state.VideoStream != null
|
||||||
@ -2772,11 +2770,6 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
|
|
||||||
if (!state.RunTimeTicks.HasValue)
|
if (!state.RunTimeTicks.HasValue)
|
||||||
{
|
{
|
||||||
if(supportsGlobalHeaderFlag)
|
|
||||||
{
|
|
||||||
args += " -flags -global_header";
|
|
||||||
}
|
|
||||||
|
|
||||||
args += " -fflags +genpts";
|
args += " -fflags +genpts";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2822,11 +2815,6 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
{
|
{
|
||||||
args += " " + qualityParam.Trim();
|
args += " " + qualityParam.Trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (supportsGlobalHeaderFlag && !state.RunTimeTicks.HasValue)
|
|
||||||
{
|
|
||||||
args += " -flags -global_header";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(state.OutputVideoSync))
|
if (!string.IsNullOrEmpty(state.OutputVideoSync))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user