From 461533199dca77948e1f0b54e2c65d3c34bcddca Mon Sep 17 00:00:00 2001 From: Saxon Date: Thu, 9 May 2019 12:02:23 +0930 Subject: [PATCH] codec/h265: renamed RTP marker from m to marker --- 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 3d820ef1..e0c80362 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) } - m, err := rtp.Marker(buf[:n]) + marker, err := rtp.Marker(buf[:n]) if err != nil { return fmt.Errorf("could not get marker bit, failed with err: %v\n", err) } - if m { + if marker { _, err := l.buf.WriteTo(dst) if err != nil { // TODO: work out what to do here.