mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-09 07:10:34 +02:00
update interlaced detection
This commit is contained in:
parent
3c433e95b9
commit
59277211c7
|
@ -292,11 +292,11 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
var formats = (video.Container ?? string.Empty).Split(',').ToList();
|
|
||||||
|
|
||||||
// If the video codec is not some form of mpeg, then take a shortcut and limit this to containers that are likely to have interlaced content
|
// If the video codec is not some form of mpeg, then take a shortcut and limit this to containers that are likely to have interlaced content
|
||||||
if ((videoStream.Codec ?? string.Empty).IndexOf("mpeg", StringComparison.OrdinalIgnoreCase) == -1)
|
if ((videoStream.Codec ?? string.Empty).IndexOf("mpeg", StringComparison.OrdinalIgnoreCase) == -1)
|
||||||
{
|
{
|
||||||
|
var formats = (video.Container ?? string.Empty).Split(',').ToList();
|
||||||
|
|
||||||
if (!formats.Contains("vob", StringComparer.OrdinalIgnoreCase) &&
|
if (!formats.Contains("vob", StringComparer.OrdinalIgnoreCase) &&
|
||||||
!formats.Contains("m2ts", StringComparer.OrdinalIgnoreCase) &&
|
!formats.Contains("m2ts", StringComparer.OrdinalIgnoreCase) &&
|
||||||
!formats.Contains("ts", StringComparer.OrdinalIgnoreCase) &&
|
!formats.Contains("ts", StringComparer.OrdinalIgnoreCase) &&
|
||||||
|
|
Loading…
Reference in a new issue