Skip to content

Commit

Permalink
Fix capitalization in video profiles causing invalid transcodes
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsvanvelzen committed Aug 25, 2024
1 parent b362ac4 commit 617ff06
Showing 1 changed file with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ object ProfileHelper {
ProfileCondition(
ProfileConditionType.NotEquals,
ProfileConditionValue.VideoProfile,
"Main 10"
"main 10"
)
)
}
Expand Down Expand Up @@ -90,11 +90,11 @@ object ProfileHelper {
ProfileConditionType.EqualsAny,
ProfileConditionValue.VideoProfile,
listOfNotNull(
"High",
"Main",
"Baseline",
"Constrained Baseline",
if (supportsAVCHigh10) "High 10" else null
"high",
"main",
"baseline",
"constrained baseline",
if (supportsAVCHigh10) "high 10" else null
).joinToString("|")
)
)
Expand All @@ -115,10 +115,10 @@ object ProfileHelper {
ProfileConditionType.EqualsAny,
ProfileConditionValue.VideoProfile,
listOfNotNull(
"High",
"Main",
"Baseline",
"Constrained Baseline"
"high",
"main",
"baseline",
"constrained baseline"
).joinToString("|")
)
)
Expand Down Expand Up @@ -191,8 +191,8 @@ object ProfileHelper {
ProfileConditionType.EqualsAny,
ProfileConditionValue.VideoProfile,
listOfNotNull(
"Main",
if (supportsHevcMain10) "Main 10" else null
"main",
if (supportsHevcMain10) "main 10" else null
).joinToString("|")
)
)
Expand All @@ -212,7 +212,7 @@ object ProfileHelper {
ProfileCondition(
ProfileConditionType.Equals,
ProfileConditionValue.VideoProfile,
"Main"
"main"
)
)

Expand All @@ -234,7 +234,7 @@ object ProfileHelper {
ProfileCondition(
ProfileConditionType.Equals,
ProfileConditionValue.VideoProfile,
"Main 10"
"main 10"
)
)

Expand Down

0 comments on commit 617ff06

Please sign in to comment.