codec/h265/lex_test.go: fixed TestLex to account for previous changes

This commit is contained in:
Saxon 2019-05-19 20:45:26 +09:30
parent a2d1b09e92
commit abd41d9f01
2 changed files with 2 additions and 3 deletions

View File

@ -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)

View File

@ -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