diff options
author | Lukasz Marek <lukasz.m.luki2@gmail.com> | 2014-12-13 19:54:39 +0100 |
---|---|---|
committer | Lukasz Marek <lukasz.m.luki2@gmail.com> | 2014-12-14 23:55:41 +0100 |
commit | 00dc2859f050133bf273236bb1b45eb477a1e2ed (patch) | |
tree | 15153f027d9deb44708801c421e83fdaea369361 | |
parent | b3311f3cc9ffaaf7dd7806bf46a056a43c8b9371 (diff) | |
download | ffmpeg-00dc2859f050133bf273236bb1b45eb477a1e2ed.tar.gz |
cmdutils: use macros for device test
Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
-rw-r--r-- | cmdutils.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/cmdutils.c b/cmdutils.c index b68dae9753..4e0a406fde 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -1213,12 +1213,7 @@ static int is_device(const AVClass *avclass) { if (!avclass) return 0; - return avclass->category == AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT || - 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; + return AV_IS_INPUT_DEVICE(avclass->category) || AV_IS_OUTPUT_DEVICE(avclass->category); } static int show_formats_devices(void *optctx, const char *opt, const char *arg, int device_only) |