mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
13 lines
242 B
Go
13 lines
242 B
Go
package h264
|
|
|
|
// IDRPresent check if there's an IDR inside provided NALUs.
|
|
func IDRPresent(nalus [][]byte) bool {
|
|
for _, nalu := range nalus {
|
|
typ := NALUType(nalu[0] & 0x1F)
|
|
if typ == NALUTypeIDR {
|
|
return true
|
|
}
|
|
}
|
|
return false
|
|
}
|