diff --git a/codec/h264/lex.go b/codec/h264/lex.go index 07c9acc1..1e8e7ecb 100644 --- a/codec/h264/lex.go +++ b/codec/h264/lex.go @@ -204,7 +204,7 @@ func (l *RTPLexer) Lex(dst io.Writer, src io.Reader, delay time.Duration) error continue } - if nalType >= typeSingleNALULowBound && nalType <= typeSingleNALUHighBound { + if typeSingleNALULowBound <= nalType && nalType <= typeSingleNALUHighBound { l.writeWithPrefix(payload) } else { switch nalType {