Merge pull request #1336 from MediaBrowser/mediainfo

Mediainfo
This commit is contained in:
Luke 2015-12-19 12:46:03 -05:00
commit acd8b0d7a8

View File

@ -103,13 +103,6 @@ namespace MediaBrowser.MediaEncoding.Probing
}
ExtractTimestamp(info);
var videoStream = info.MediaStreams.FirstOrDefault(i => i.Type == MediaStreamType.Video);
if (videoStream != null && videoType == VideoType.VideoFile)
{
DetectInterlaced(info, videoStream);
}
}
return info;
@ -932,20 +925,5 @@ namespace MediaBrowser.MediaEncoding.Probing
return TransportStreamTimestamp.None;
}
private void DetectInterlaced(MediaSourceInfo video, MediaStream videoStream)
{
if (video.Protocol != MediaProtocol.File || videoStream == null)
{
return;
}
// Take a shortcut and limit this to containers that are likely to have interlaced content
if (!string.Equals(video.Container, "ts", StringComparison.OrdinalIgnoreCase) &&
!string.Equals(video.Container, "wtv", StringComparison.OrdinalIgnoreCase))
{
return;
}
}
}
}