From c31c76e1f57618c36d75626b5245ce5c06e6e109 Mon Sep 17 00:00:00 2001 From: Saxon Date: Thu, 9 May 2019 14:15:11 +0930 Subject: [PATCH] codec/h265/lex.go: renamed marker to markerIsSet --- codec/h265/lex.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codec/h265/lex.go b/codec/h265/lex.go index 06b7dcb2..7bcb3efa 100644 --- a/codec/h265/lex.go +++ b/codec/h265/lex.go @@ -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.