codec/containter/mts/encoder_test.go: fixed bug in test

This commit is contained in:
Saxon 2019-09-11 09:57:34 +09:30
parent ecdaab175b
commit e0509e7e61
1 changed files with 4 additions and 1 deletions

View File

@ -101,7 +101,10 @@ func TestEncodeVideo(t *testing.T) {
// Create the dst and write the test data to encoder. // Create the dst and write the test data to encoder.
dst := &destination{} dst := &destination{}
_, err := NewEncoder(nopCloser{dst}, 25, EncodeH264).Write(data) e := NewEncoder(nopCloser{dst}, 25, EncodeH264)
e.NALBasedPSI(false, psiSendCount)
_, err := e.Write(data)
if err != nil { if err != nil {
t.Fatalf("could not write data to encoder, failed with err: %v\n", err) t.Fatalf("could not write data to encoder, failed with err: %v\n", err)
} }