Merge pull request #2184 from WiiPlayer2/bug/global-header-flag-support

Add check if output container supports "global_header" flag
This commit is contained in:
dkanada 2020-01-21 19:24:35 +09:00 committed by GitHub
commit d4de78693f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2757,7 +2757,7 @@ namespace MediaBrowser.Controller.MediaEncoding
if (!state.RunTimeTicks.HasValue)
{
args += " -flags -global_header -fflags +genpts";
args += " -fflags +genpts";
}
}
else
@ -2802,11 +2802,6 @@ namespace MediaBrowser.Controller.MediaEncoding
{
args += " " + qualityParam.Trim();
}
if (!state.RunTimeTicks.HasValue)
{
args += " -flags -global_header";
}
}
if (!string.IsNullOrEmpty(state.OutputVideoSync))