diff options
| author | myristate <myristate@users.noreply.github.com> | 2026-10-13 13:36:10 -0400 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2026-10-13 13:36:10 -0400 |
| commit | 054706333d0c76b2fe676c91fbdf19b39d3d7b8b (patch) | |
| tree | 6811450ba7a5bc9308ec51d0b1083b79be83c455 /MediaBrowser.MediaEncoding/Probing | |
| parent | 619eb231b4b9e9eaffa4a072c944fc3f7a8997d3 (diff) | |
Backport pull request #18243 from jellyfin/release-12.z
Fix crash probing streams without frame size
Original-merge: 8e50df32e7ca3f7d74553b2dbb40cc3ef8e95bfc
Merged-by: crobibero <cody@robibe.ro>
Backported-by: Bond_009 <bond.009@outlook.com>
Diffstat (limited to 'MediaBrowser.MediaEncoding/Probing')
| -rw-r--r-- | MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs | 6 |
1 files changed, 6 insertions, 0 deletions
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; } |
