Skip to content

Commit

Permalink
stop adding h264 to codec string twice
Browse files Browse the repository at this point in the history
  • Loading branch information
cewert committed Nov 12, 2024
1 parent 6d87f3a commit f00038a
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions source/utils/deviceCapabilities.bs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f00038a

Please sign in to comment.