mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-10-26 16:45:09 +00:00
Backport pull request #18243 from jellyfin/release-12.z
Fix crash probing streams without frame size
Original-merge: 8e50df32e7
Merged-by: crobibero <cody@robibe.ro>
Backported-by: Bond_009 <bond.009@outlook.com>
This commit is contained in:
1 parent
619eb231b4
commit
054706333d
5 files changed
+192
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user