mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2025-02-19 11:31:43 +00:00
cmdutils: use macros for device test
Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
This commit is contained in:
parent
b3311f3cc9
commit
00dc2859f0
@ -1213,12 +1213,7 @@ static int is_device(const AVClass *avclass)
|
|||||||
{
|
{
|
||||||
if (!avclass)
|
if (!avclass)
|
||||||
return 0;
|
return 0;
|
||||||
return avclass->category == AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT ||
|
return AV_IS_INPUT_DEVICE(avclass->category) || AV_IS_OUTPUT_DEVICE(avclass->category);
|
||||||
avclass->category == AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT ||
|
|
||||||
avclass->category == AV_CLASS_CATEGORY_DEVICE_AUDIO_OUTPUT ||
|
|
||||||
avclass->category == AV_CLASS_CATEGORY_DEVICE_AUDIO_INPUT ||
|
|
||||||
avclass->category == AV_CLASS_CATEGORY_DEVICE_OUTPUT ||
|
|
||||||
avclass->category == AV_CLASS_CATEGORY_DEVICE_INPUT;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int show_formats_devices(void *optctx, const char *opt, const char *arg, int device_only)
|
static int show_formats_devices(void *optctx, const char *opt, const char *arg, int device_only)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user