aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.MediaEncoding
diff options
context:
space:
mode:
authorOrry Verducci <orry@orryverducci.co.uk>2020-11-22 16:54:41 +0000
committerOrry Verducci <orry@orryverducci.co.uk>2020-11-22 16:54:41 +0000
commit812300ad333a8ee844ba1c5e7facbe35c98f983c (patch)
tree03d8a3145ee4080d910664cd99ee10ade116ec7c /MediaBrowser.MediaEncoding
parent84fd5a09532bd1e854ec3745609f845aa7098da2 (diff)
Revert "Fix frame rate probing for interlaced MKV files"
This reverts commit 84fd5a09532bd1e854ec3745609f845aa7098da2.
Diffstat (limited to 'MediaBrowser.MediaEncoding')
-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 cdeefbbbd..22537a4d9 100644
--- a/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs
+++ b/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs
@@ -666,16 +666,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))
{