codec/h264/lex_test.go: renamed t to tmp in destination.Write()

This commit is contained in:
Saxon 2019-05-24 10:41:18 +09:30
parent 41f442437d
commit 5b970823ef
1 changed files with 3 additions and 3 deletions

View File

@ -250,9 +250,9 @@ type destination [][]byte
// Write implements io.Writer.
func (d *destination) Write(p []byte) (int, error) {
t := make([]byte, len(p))
copy(t, p)
*d = append([][]byte(*d), t)
tmp := make([]byte, len(p))
copy(tmp, p)
*d = append([][]byte(*d), tmp)
return len(p), nil
}