AVDeviceInfoList.default_device

< index of default device or -1 if no default

struct AVDeviceInfoList
int default_device;

Meta