mirror of https://github.com/jellyfin/jellyfin
Correctly handle retry when I frame only failed
This commit is contained in:
parent
1c4b5199b8
commit
6637102162
|
|
@ -767,7 +767,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||
// The mpegts demuxer cannot seek to keyframes, so we have to let the
|
||||
// decoder discard non-keyframes, which may contain corrupted images.
|
||||
var seekMpegTs = offset.HasValue && string.Equals("mpegts", container, StringComparison.OrdinalIgnoreCase);
|
||||
if ((useIFrame && useTradeoff) || seekMpegTs)
|
||||
if (useIFrame && (useTradeoff || seekMpegTs))
|
||||
{
|
||||
args = "-skip_frame nokey " + args;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue