Merge pull request #977 from Lynxy/genpts

Always set ffmpeg flag +genpts when video stream is being copied
This commit is contained in:
Joshua M. Boniface
2019-02-27 00:52:51 -05:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -1904,7 +1904,7 @@ namespace MediaBrowser.Controller.MediaEncoding
{
flags.Add("+ignidx");
}
if (state.GenPtsInput)
if (state.GenPtsInput || string.Equals(state.OutputVideoCodec, "copy", StringComparison.OrdinalIgnoreCase))
{
flags.Add("+genpts");
}