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