mirror of
https://github.com/Radarr/Radarr.git
synced 2024-07-07 04:19:25 +02:00
Fixed: Avoid ArgumentRangeException on FFProbe check when no sidedata frames
Fixes RADARR-1G5Q
This commit is contained in:
parent
7a859f340b
commit
75270d8151
@ -113,7 +113,7 @@ public MediaInfoModel GetMediaInfo(string filename)
|
||||
}
|
||||
|
||||
var streamSideData = analysis.PrimaryVideoStream?.SideDataList ?? new ();
|
||||
var framesSideData = frames?.Frames[0]?.SideDataList ?? new ();
|
||||
var framesSideData = frames?.Frames?.Count > 0 ? frames?.Frames[0]?.SideDataList ?? new () : new ();
|
||||
|
||||
var sideData = streamSideData.Concat(framesSideData).ToList();
|
||||
mediaInfoModel.VideoHdrFormat = GetHdrFormat(mediaInfoModel.VideoBitDepth, mediaInfoModel.VideoColourPrimaries, mediaInfoModel.VideoTransferCharacteristics, sideData);
|
||||
|
Loading…
Reference in New Issue
Block a user