Rewrite magic source

This commit is contained in:
Alexey Khit
2023-08-19 15:19:09 +03:00
parent a9118562a9
commit bc60cbefb8
11 changed files with 124 additions and 114 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ func (k *Keyframe) AddTrack(media *core.Media, _ *core.Codec, track *core.Receiv
if !h264.IsKeyframe(packet.Payload) {
return
}
b := annexb.DecodeAVCC(packet.Payload)
b := annexb.DecodeAVCC(packet.Payload, true)
k.Fire(b)
}