1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-12-22 15:25:48 +01:00

Fix codec check in rtpwriter.

This commit is contained in:
Juliusz Chroboczek 2020-12-07 19:50:10 +01:00
parent f8e2f755d6
commit f7048e4dae

View file

@ -345,7 +345,7 @@ func rtpWriterLoop(writer *rtpWriter, up *rtpUpConnection, track *rtpUpTrack) {
if kfNeeded > kfUnneeded {
kf := false
kfValid := false
switch codec.MimeType {
switch strings.ToLower(codec.MimeType) {
case "video/vp8":
kf = isVP8Keyframe(&packet)
kfValid = true