Backport pull request #15834 from jellyfin/release-10.11.z

Fix video lacking SAR and DAR are marked as anamorphic

Original-merge: 9470439cfa

Merged-by: crobibero <cody@robibe.ro>

Backported-by: Bond_009 <bond.009@outlook.com>
This commit is contained in:
nyanmisaka
2025-12-28 07:22:36 -05:00
committed by Bond_009
parent 7f0e71578d
commit 7af5ee1812

View File

@@ -857,7 +857,12 @@ namespace MediaBrowser.MediaEncoding.Probing
} }
// http://stackoverflow.com/questions/17353387/how-to-detect-anamorphic-video-with-ffprobe // http://stackoverflow.com/questions/17353387/how-to-detect-anamorphic-video-with-ffprobe
if (string.Equals(streamInfo.SampleAspectRatio, "1:1", StringComparison.Ordinal)) if (string.IsNullOrEmpty(streamInfo.SampleAspectRatio)
&& string.IsNullOrEmpty(streamInfo.DisplayAspectRatio))
{
stream.IsAnamorphic = false;
}
else if (string.Equals(streamInfo.SampleAspectRatio, "1:1", StringComparison.Ordinal))
{ {
stream.IsAnamorphic = false; stream.IsAnamorphic = false;
} }