Fix error in DTS detection where profile is not set

This commit is contained in:
MrMeeb 2024-04-28 17:00:07 +00:00
parent 4c24372e48
commit 9fa79a752b

View File

@ -291,7 +291,7 @@ const response = {
}
// Identify if stream is DTS-HD MA
if (file.ffProbeData.streams[i].profile.toLowerCase() === 'dts-hd ma') {
if (file.ffProbeData.streams[i].profile != undefined && file.ffProbeData.streams[i].profile.toLowerCase() === 'dts-hd ma') {
// Check if DTS-HD MA has already been handled by a previous run
// Assume that it will be the second stream (first audio stream) - it should be, if already handled