Commit f7048e4d authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix codec check in rtpwriter.

parent f8e2f755
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment