summaryrefslogtreecommitdiff
path: root/libavdevice/decklink_dec_c.c
diff options
context:
space:
mode:
authorLimin Wang <lance.lmwang@gmail.com>2020-11-19 21:57:52 +0800
committerLimin Wang <lance.lmwang@gmail.com>2020-11-23 16:18:57 +0800
commitae23a9684db7f85c77c05b7bfa9499a80b877e11 (patch)
tree997cef427f788cfd038bef8ba779ecf33d9de15b /libavdevice/decklink_dec_c.c
parent9208b72a385ccd813c886a7115cd734eea4adba5 (diff)
downloadffmpeg-ae23a9684db7f85c77c05b7bfa9499a80b877e11.tar.gz
avdevice/decklink: use boolean for list_devices option
For the document(indevs.texi and outdevs.texi) used it as boolean. Reviewed-by: Marton Balint <cus@passwd.hu> Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavdevice/decklink_dec_c.c')
-rw-r--r--libavdevice/decklink_dec_c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/decklink_dec_c.c b/libavdevice/decklink_dec_c.c
index 59974400a6..53a4774155 100644
--- a/libavdevice/decklink_dec_c.c
+++ b/libavdevice/decklink_dec_c.c
@@ -30,7 +30,7 @@
#define DEC AV_OPT_FLAG_DECODING_PARAM
static const AVOption options[] = {
- { "list_devices", "list available devices" , OFFSET(list_devices), AV_OPT_TYPE_INT , { .i64 = 0 }, 0, 1, DEC },
+ { "list_devices", "list available devices" , OFFSET(list_devices), AV_OPT_TYPE_BOOL , { .i64 = 0 }, 0, 1, DEC },
{ "list_formats", "list supported formats" , OFFSET(list_formats), AV_OPT_TYPE_INT , { .i64 = 0 }, 0, 1, DEC },
{ "format_code", "set format by fourcc" , OFFSET(format_code), AV_OPT_TYPE_STRING, { .str = NULL}, 0, 0, DEC },
{ "raw_format", "pixel format to be returned by the card when capturing" , OFFSET(raw_format), AV_OPT_TYPE_INT, { .i64 = 0}, 0, 5, DEC, "raw_format" },