From f00038a61adef78a5d39ed4797f736e1955d5a27 Mon Sep 17 00:00:00 2001 From: Charles Ewert Date: Tue, 12 Nov 2024 13:08:51 -0500 Subject: [PATCH] stop adding h264 to codec string twice --- source/utils/deviceCapabilities.bs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/source/utils/deviceCapabilities.bs b/source/utils/deviceCapabilities.bs index 44cc05d66..a7dd27034 100644 --- a/source/utils/deviceCapabilities.bs +++ b/source/utils/deviceCapabilities.bs @@ -211,19 +211,6 @@ function getTranscodingProfiles() as object ' ' AVC / h264 / MPEG4 AVC for each container in transcodingContainers - if di.CanDecodeVideo({ Codec: "h264", Container: container }).Result - if container = "mp4" - ' check for codec string before adding it - if mp4VideoCodecs.Instr(0, ",h264") = -1 - mp4VideoCodecs = mp4VideoCodecs + ",h264" - end if - else if container = "ts" - ' check for codec string before adding it - if tsVideoCodecs.Instr(0, ",h264") = -1 - tsVideoCodecs = tsVideoCodecs + ",h264" - end if - end if - end if if di.CanDecodeVideo({ Codec: "mpeg4 avc", Container: container }).Result if container = "mp4" ' check for codec string before adding it