Skip to content

Commit

Permalink
fix: accept hvc codec identifier for hevc
Browse files Browse the repository at this point in the history
  • Loading branch information
dmnsgn committed Apr 19, 2023
1 parent 1feceb3 commit d88431d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/encoders/WebCodecsEncoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class WebCodecsEncoder extends Encoder {
codec:
this.extension === "mp4"
? // Supported: "avc" | "hevc"
CCCC.startsWith("hev")
CCCC.startsWith("hev") || CCCC.startsWith("hvc") // https://www.w3.org/TR/webcodecs-hevc-codec-registration/#fully-qualified-codec-strings
? "hevc"
: "avc"
: // Supported: "V_VP8" | "V_VP9" (TODO: V_AV1)
Expand Down

0 comments on commit d88431d

Please sign in to comment.