diff --git a/codec/h264/lex_test.go b/codec/h264/lex_test.go index 7e3422ea..46191fbd 100644 --- a/codec/h264/lex_test.go +++ b/codec/h264/lex_test.go @@ -252,7 +252,7 @@ type destination [][]byte func (d *destination) Write(p []byte) (int, error) { tmp := make([]byte, len(p)) copy(tmp, p) - *d = append([][]byte(*d), tmp) + *d = append(*d, tmp) return len(p), nil }