Fixed: Avoid ArgumentRangeException on FFProbe check when no sidedata frames

Fixes RADARR-1G5Q
This commit is contained in:
Qstick 2022-01-01 10:48:24 -06:00
parent 7a859f340b
commit 75270d8151
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ namespace NzbDrone.Core.MediaFiles.MediaInfo
}
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);