mirror of https://bitbucket.org/ausocean/av.git
container/mts/encoder_test.go: simplified some code and improved commenting
This commit is contained in:
parent
a0e2360f2b
commit
1e7d3508e3
|
@ -97,11 +97,9 @@ func TestEncodeVideo(t *testing.T) {
|
|||
},
|
||||
}
|
||||
|
||||
// Create the dst and write the test data to encoder.
|
||||
dst := &destination{}
|
||||
e := NewEncoder(nopCloser{dst}, 25, Video)
|
||||
|
||||
// Write data.
|
||||
_, err := e.Write(data)
|
||||
_, err := NewEncoder(nopCloser{dst}, 25, Video).Write(data)
|
||||
if err != nil {
|
||||
t.Fatalf("could not write data to encoder, failed with err: %v\n", err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue