summaryrefslogtreecommitdiff
path: root/libavdevice
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2015-09-11 20:47:03 +0200
committerClément Bœsch <clement@stupeflix.com>2015-09-12 17:50:20 +0200
commit9d0a6ede30e65f9f72a4d2cecd0d27a855eabba8 (patch)
tree7ac00f7f6d670b9253c6321adc47e8ca20ed1faa /libavdevice
parent4f926a1088514dfa2fe95b2832c5f81c74d491c2 (diff)
downloadffmpeg-9d0a6ede30e65f9f72a4d2cecd0d27a855eabba8.tar.gz
avdevice/caca: use AV_OPT_TYPE_BOOL for list_drivers option
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/caca.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavdevice/caca.c b/libavdevice/caca.c
index ff54940d31..56cf0d1f14 100644
--- a/libavdevice/caca.c
+++ b/libavdevice/caca.c
@@ -208,9 +208,7 @@ static const AVOption options[] = {
{ "antialias", "set antialias method", OFFSET(antialias), AV_OPT_TYPE_STRING, {.str = "default" }, 0, 0, ENC },
{ "charset", "set charset used to render output", OFFSET(charset), AV_OPT_TYPE_STRING, {.str = "default" }, 0, 0, ENC },
{ "color", "set color used to render output", OFFSET(color), AV_OPT_TYPE_STRING, {.str = "default" }, 0, 0, ENC },
- { "list_drivers", "list available drivers", OFFSET(list_drivers), AV_OPT_TYPE_INT, {.i64=0}, 0, 1, ENC, "list_drivers" },
- { "true", NULL, 0, AV_OPT_TYPE_CONST, {.i64 = 1}, 0, 0, ENC, "list_drivers" },
- { "false", NULL, 0, AV_OPT_TYPE_CONST, {.i64 = 0}, 0, 0, ENC, "list_drivers" },
+ { "list_drivers", "list available drivers", OFFSET(list_drivers), AV_OPT_TYPE_BOOL, {.i64=0}, 0, 1, ENC },
{ "list_dither", "list available dither options", OFFSET(list_dither), AV_OPT_TYPE_STRING, {.dbl=0}, 0, 1, ENC, "list_dither" },
{ "algorithms", NULL, 0, AV_OPT_TYPE_CONST, {.str = "algorithms"}, 0, 0, ENC, "list_dither" },
{ "antialiases", NULL, 0, AV_OPT_TYPE_CONST, {.str = "antialiases"},0, 0, ENC, "list_dither" },