mirror of https://bitbucket.org/ausocean/av.git
codec/h264/lex.go: made nalType if statement in RTPLexer.Lex more go like
This commit is contained in:
parent
1df0d214c9
commit
8b7c62602f
|
@ -204,7 +204,7 @@ func (l *RTPLexer) Lex(dst io.Writer, src io.Reader, delay time.Duration) error
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
if nalType >= typeSingleNALULowBound && nalType <= typeSingleNALUHighBound {
|
if typeSingleNALULowBound <= nalType && nalType <= typeSingleNALUHighBound {
|
||||||
l.writeWithPrefix(payload)
|
l.writeWithPrefix(payload)
|
||||||
} else {
|
} else {
|
||||||
switch nalType {
|
switch nalType {
|
||||||
|
|
Loading…
Reference in New Issue