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:
parent
f8e2f755d6
commit
f7048e4dae
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue