codec/h264/lex.go: made nalType if statement in RTPLexer.Lex more go like

This commit is contained in:
Saxon 2019-05-30 18:49:27 +09:30
parent 1df0d214c9
commit 8b7c62602f
1 changed files with 1 additions and 1 deletions

View File

@ -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 {