From abd41d9f014ee0e4a51e99accaa66a313b9e6f8d Mon Sep 17 00:00:00 2001 From: Saxon Date: Sun, 19 May 2019 20:45:26 +0930 Subject: [PATCH] codec/h265/lex_test.go: fixed TestLex to account for previous changes --- codec/h265/lex.go | 1 - codec/h265/lex_test.go | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/codec/h265/lex.go b/codec/h265/lex.go index f5afa5e6..84d9222a 100644 --- a/codec/h265/lex.go +++ b/codec/h265/lex.go @@ -76,7 +76,6 @@ func (l *Lexer) Lex(dst io.Writer, src io.Reader, delay time.Duration) error { switch err { case nil: // Do nothing. case io.EOF: - fmt.Println("done") return nil default: return fmt.Errorf("source read error: %v\n", err) diff --git a/codec/h265/lex_test.go b/codec/h265/lex_test.go index 637a1860..1a409e4c 100644 --- a/codec/h265/lex_test.go +++ b/codec/h265/lex_test.go @@ -129,7 +129,7 @@ func TestLex(t *testing.T) { 0x01, 0x02, 0x03, 0x04, // NAL data. // NAL 2 0x00, 0x00, 0x00, 0x01, // Start code. - 0x01, 0x02, 0x03, // FU payload. + 0x00, 0x00, 0x01, 0x02, 0x03, // FU payload. 0x04, 0x05, 0x06, // FU payload. 0x07, 0x08, 0x09, // FU payload. // NAL 3 @@ -216,7 +216,7 @@ func TestLex(t *testing.T) { 0x01, 0x02, 0x03, 0x04, // NAL data. // NAL 2 0x00, 0x00, 0x00, 0x01, // Start code. - 0x01, 0x02, 0x03, // FU payload. + 0x00, 0x00, 0x01, 0x02, 0x03, // FU payload. 0x04, 0x05, 0x06, // FU payload. 0x07, 0x08, 0x09, // FU payload. // NAL 3