mirror of https://bitbucket.org/ausocean/av.git
codec/h264/lex_test.go: renamed t to tmp in destination.Write()
This commit is contained in:
parent
41f442437d
commit
5b970823ef
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue