mirror of https://bitbucket.org/ausocean/av.git
codec/h265/lex.go: renamed marker to markerIsSet
This commit is contained in:
parent
31d756fef2
commit
c31c76e1f5
|
@ -107,12 +107,12 @@ func (l *Lexer) Lex(dst io.Writer, src io.Reader, delay time.Duration) error {
|
|||
l.writeWithPrefix(payload)
|
||||
}
|
||||
|
||||
marker, err := rtp.Marker(buf[:n])
|
||||
markerIsSet, err := rtp.Marker(buf[:n])
|
||||
if err != nil {
|
||||
return fmt.Errorf("could not get marker bit, failed with err: %v\n", err)
|
||||
}
|
||||
|
||||
if marker {
|
||||
if markerIsSet {
|
||||
_, err := l.buf.WriteTo(dst)
|
||||
if err != nil {
|
||||
// TODO: work out what to do here.
|
||||
|
|
Loading…
Reference in New Issue