From ef16a82edbb9a0f0fef4f66af7417b2cb5ab2cd8 Mon Sep 17 00:00:00 2001 From: Saxon Date: Thu, 9 May 2019 12:09:54 +0930 Subject: [PATCH] codec/h265/lex_test.go: for rtpReader.Read() getting number of bytes read from copy and using that in return --- codec/h265/lex_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codec/h265/lex_test.go b/codec/h265/lex_test.go index 67ba22cf..e68d1833 100644 --- a/codec/h265/lex_test.go +++ b/codec/h265/lex_test.go @@ -44,9 +44,9 @@ func (r *rtpReader) Read(p []byte) (int, error) { return 0, io.EOF } b := r.packets[r.idx] - copy(p, b) + n := copy(p, b) r.idx++ - return len(b), nil + return n, nil } // destination holds the access units extracted during the lexing process.