aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2020-11-22 13:06:10 -0500
committerGitHub <noreply@github.com>2020-11-22 13:06:10 -0500
commitf39e55e2e5d3d74008ce545d7355073a95803fa3 (patch)
tree30440d0c3e074765d4a130cf0012c963285871a3
parenta57b99bffdf40067465a0dda920fab23ceda1451 (diff)
parent812300ad333a8ee844ba1c5e7facbe35c98f983c (diff)
Merge pull request #4548 from orryverducci/mkv-interlaced-fix
Revert "Fix frame rate probing for interlaced MKV files"
-rw-r--r--MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs10
1 files changed, 0 insertions, 10 deletions
diff --git a/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs b/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs
index 3d3d1eb48..97d61441c 100644
--- a/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs
+++ b/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs
@@ -694,16 +694,6 @@ namespace MediaBrowser.MediaEncoding.Probing
stream.AverageFrameRate = GetFrameRate(streamInfo.AverageFrameRate);
stream.RealFrameRate = GetFrameRate(streamInfo.RFrameRate);
- // Interlaced video streams in Matroska containers return the field rate instead of the frame rate
- // as both the average and real frame rate, so we half the returned frame rates to get the correct values
- //
- // https://gitlab.com/mbunkus/mkvtoolnix/-/wikis/Wrong-frame-rate-displayed
- if (stream.IsInterlaced && formatInfo.FormatName.Contains("matroska", StringComparison.OrdinalIgnoreCase))
- {
- stream.AverageFrameRate /= 2;
- stream.RealFrameRate /= 2;
- }
-
if (isAudio || string.Equals(stream.Codec, "gif", StringComparison.OrdinalIgnoreCase) ||
string.Equals(stream.Codec, "png", StringComparison.OrdinalIgnoreCase))
{