codec/h264/lex_test.go: removed unnecessary conversion

This commit is contained in:
Saxon 2019-05-30 19:06:50 +09:30
parent 20d5f9605f
commit aad0c54039
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ type destination [][]byte
func (d *destination) Write(p []byte) (int, error) { func (d *destination) Write(p []byte) (int, error) {
tmp := make([]byte, len(p)) tmp := make([]byte, len(p))
copy(tmp, p) copy(tmp, p)
*d = append([][]byte(*d), tmp) *d = append(*d, tmp)
return len(p), nil return len(p), nil
} }