Files
go-astiav/input_format_test.go
Tryanks e5d0d37991 Add avdevice support (#29)
* Add avdevice support

* Format Adjustment:
DeviceRegisterAll renamed to RegisterAllDevices
Move FindInputFormat position
Add Name(), LongName(), String() methods to InputFormat
Adjust TestInputFormat test
2023-07-27 17:59:18 +02:00

15 lines
315 B
Go

package astiav_test
import (
"github.com/asticode/go-astiav"
"github.com/stretchr/testify/require"
"testing"
)
func TestInputFormat(t *testing.T) {
formatName := "rawvideo"
inputFormat := astiav.FindInputFormat(formatName)
require.NotNil(t, inputFormat)
require.True(t, inputFormat.Name() == formatName)
}