1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-26 02:25:58 +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 { if kfNeeded > kfUnneeded {
kf := false kf := false
kfValid := false kfValid := false
switch codec.MimeType { switch strings.ToLower(codec.MimeType) {
case "video/vp8": case "video/vp8":
kf = isVP8Keyframe(&packet) kf = isVP8Keyframe(&packet)
kfValid = true kfValid = true