From 054706333d0c76b2fe676c91fbdf19b39d3d7b8b Mon Sep 17 00:00:00 2001 From: myristate Date: Tue, 13 Oct 2026 13:36:10 -0400 Subject: Backport pull request #18243 from jellyfin/release-12.z Fix crash probing streams without frame size Original-merge: 8e50df32e7ca3f7d74553b2dbb40cc3ef8e95bfc Merged-by: crobibero Backported-by: Bond_009 --- MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'MediaBrowser.MediaEncoding') diff --git a/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs b/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs index 5533e55223..c9d618c84a 100644 --- a/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs +++ b/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs @@ -1110,6 +1110,12 @@ namespace MediaBrowser.MediaEncoding.Probing && width > 0 && height > 0)) { + // Live TV and other early probes can report neither a usable display aspect ratio nor the frame size + if (info.Width is not > 0 || info.Height is not > 0) + { + return original; + } + width = info.Width.Value; height = info.Height.Value; } -- cgit v1.2.3