mirror of
https://github.com/livekit/livekit.git
synced 2026-06-08 00:02:18 +00:00
we need to consider SPS presence as keyframe indicator for simple NALU (#1016)
This commit is contained in:
@@ -223,7 +223,7 @@ func IsH264Keyframe(payload []byte) bool {
|
||||
return false
|
||||
} else if nalu <= 23 {
|
||||
// simple NALU
|
||||
return nalu == 5
|
||||
return nalu == 7
|
||||
} else if nalu == 24 || nalu == 25 || nalu == 26 || nalu == 27 {
|
||||
// STAP-A, STAP-B, MTAP16 or MTAP24
|
||||
i := 1
|
||||
|
||||
Reference in New Issue
Block a user