mirror of https://bitbucket.org/ausocean/av.git
codec/h265/lex_test.go: fixed TestLex to account for previous changes
This commit is contained in:
parent
a2d1b09e92
commit
abd41d9f01
|
@ -76,7 +76,6 @@ func (l *Lexer) Lex(dst io.Writer, src io.Reader, delay time.Duration) error {
|
||||||
switch err {
|
switch err {
|
||||||
case nil: // Do nothing.
|
case nil: // Do nothing.
|
||||||
case io.EOF:
|
case io.EOF:
|
||||||
fmt.Println("done")
|
|
||||||
return nil
|
return nil
|
||||||
default:
|
default:
|
||||||
return fmt.Errorf("source read error: %v\n", err)
|
return fmt.Errorf("source read error: %v\n", err)
|
||||||
|
|
|
@ -129,7 +129,7 @@ func TestLex(t *testing.T) {
|
||||||
0x01, 0x02, 0x03, 0x04, // NAL data.
|
0x01, 0x02, 0x03, 0x04, // NAL data.
|
||||||
// NAL 2
|
// NAL 2
|
||||||
0x00, 0x00, 0x00, 0x01, // Start code.
|
0x00, 0x00, 0x00, 0x01, // Start code.
|
||||||
0x01, 0x02, 0x03, // FU payload.
|
0x00, 0x00, 0x01, 0x02, 0x03, // FU payload.
|
||||||
0x04, 0x05, 0x06, // FU payload.
|
0x04, 0x05, 0x06, // FU payload.
|
||||||
0x07, 0x08, 0x09, // FU payload.
|
0x07, 0x08, 0x09, // FU payload.
|
||||||
// NAL 3
|
// NAL 3
|
||||||
|
@ -216,7 +216,7 @@ func TestLex(t *testing.T) {
|
||||||
0x01, 0x02, 0x03, 0x04, // NAL data.
|
0x01, 0x02, 0x03, 0x04, // NAL data.
|
||||||
// NAL 2
|
// NAL 2
|
||||||
0x00, 0x00, 0x00, 0x01, // Start code.
|
0x00, 0x00, 0x00, 0x01, // Start code.
|
||||||
0x01, 0x02, 0x03, // FU payload.
|
0x00, 0x00, 0x01, 0x02, 0x03, // FU payload.
|
||||||
0x04, 0x05, 0x06, // FU payload.
|
0x04, 0x05, 0x06, // FU payload.
|
||||||
0x07, 0x08, 0x09, // FU payload.
|
0x07, 0x08, 0x09, // FU payload.
|
||||||
// NAL 3
|
// NAL 3
|
||||||
|
|
Loading…
Reference in New Issue