mirror of
https://github.com/asticode/go-astiav.git
synced 2025-10-05 16:16:50 +08:00

* Add avdevice support * Format Adjustment: DeviceRegisterAll renamed to RegisterAllDevices Move FindInputFormat position Add Name(), LongName(), String() methods to InputFormat Adjust TestInputFormat test
15 lines
315 B
Go
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)
|
|
}
|