github.com/bluenviron/mediacommon@v1.9.3/pkg/codecs/h264/idr_present.go (about) 1 package h264 2 3 // IDRPresent check whether there's an IDR inside the access unit. 4 func IDRPresent(au [][]byte) bool { 5 for _, nalu := range au { 6 typ := NALUType(nalu[0] & 0x1F) 7 if typ == NALUTypeIDR { 8 return true 9 } 10 } 11 return false 12 }