Use the new MIME type for AV1.

Chromium 91 and later uses "AV1" instead of "AV1X".  Simulcast is
still broken.
This commit is contained in:
Juliusz Chroboczek
2022-01-04 13:09:07 +01:00
parent 993d664ba2
commit 6fbdf0eab2
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ func Keyframe(codec string, packet *rtp.Packet) (bool, bool) {
return (vp9.Payload[0] & 0xC) == 0, true
}
return (vp9.Payload[0] & 0x6) == 0, true
} else if strings.EqualFold(codec, "video/av1x") {
} else if strings.EqualFold(codec, "video/av1") {
if len(packet.Payload) < 2 {
return false, true
}