diff options
author | Clément Bœsch <clement@stupeflix.com> | 2015-11-21 22:04:54 +0100 |
---|---|---|
committer | Clément Bœsch <clement@stupeflix.com> | 2015-12-04 15:37:06 +0100 |
commit | 0e62b5d1ef1312adb2c4815fcd59c5bcd6dc4419 (patch) | |
tree | da0fb45774fa983b6d64c5e35772f041d4627e7c /libavfilter | |
parent | fb99ef0bd39a1859d0e65c6c16caa8e17dd3cfbe (diff) | |
download | ffmpeg-0e62b5d1ef1312adb2c4815fcd59c5bcd6dc4419.tar.gz |
avfilter: use AV_OPT_TYPE_BOOL in a bunch of places
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/avf_showwaves.c | 2 | ||||
-rw-r--r-- | libavfilter/vf_pullup.c | 2 | ||||
-rw-r--r-- | libavfilter/vf_scale.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/libavfilter/avf_showwaves.c b/libavfilter/avf_showwaves.c index 77ff913f3a..4c46d8e920 100644 --- a/libavfilter/avf_showwaves.c +++ b/libavfilter/avf_showwaves.c @@ -436,7 +436,7 @@ AVFilter ff_avf_showwaves = { static const AVOption showwavespic_options[] = { { "size", "set video size", OFFSET(w), AV_OPT_TYPE_IMAGE_SIZE, {.str = "600x240"}, 0, 0, FLAGS }, { "s", "set video size", OFFSET(w), AV_OPT_TYPE_IMAGE_SIZE, {.str = "600x240"}, 0, 0, FLAGS }, - { "split_channels", "draw channels separately", OFFSET(split_channels), AV_OPT_TYPE_INT, {.i64 = 0}, 0, 1, FLAGS }, + { "split_channels", "draw channels separately", OFFSET(split_channels), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, FLAGS }, { NULL } }; diff --git a/libavfilter/vf_pullup.c b/libavfilter/vf_pullup.c index 79cf9eeeb4..100546dabf 100644 --- a/libavfilter/vf_pullup.c +++ b/libavfilter/vf_pullup.c @@ -42,7 +42,7 @@ static const AVOption pullup_options[] = { { "jr", "set right junk size", OFFSET(junk_right), AV_OPT_TYPE_INT, {.i64=1}, 0, INT_MAX, FLAGS }, { "jt", "set top junk size", OFFSET(junk_top), AV_OPT_TYPE_INT, {.i64=4}, 1, INT_MAX, FLAGS }, { "jb", "set bottom junk size", OFFSET(junk_bottom), AV_OPT_TYPE_INT, {.i64=4}, 1, INT_MAX, FLAGS }, - { "sb", "set strict breaks", OFFSET(strict_breaks), AV_OPT_TYPE_INT, {.i64=0},-1, 1, FLAGS }, + { "sb", "set strict breaks", OFFSET(strict_breaks), AV_OPT_TYPE_BOOL,{.i64=0},-1, 1, FLAGS }, { "mp", "set metric plane", OFFSET(metric_plane), AV_OPT_TYPE_INT, {.i64=0}, 0, 2, FLAGS, "mp" }, { "y", "luma", 0, AV_OPT_TYPE_CONST, {.i64=0}, 0, 0, FLAGS, "mp" }, { "u", "chroma blue", 0, AV_OPT_TYPE_CONST, {.i64=1}, 0, 0, FLAGS, "mp" }, diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c index 1032688021..f2f475e231 100644 --- a/libavfilter/vf_scale.c +++ b/libavfilter/vf_scale.c @@ -628,7 +628,7 @@ static const AVOption scale_options[] = { { "h", "Output video height", OFFSET(h_expr), AV_OPT_TYPE_STRING, .flags = FLAGS }, { "height","Output video height", OFFSET(h_expr), AV_OPT_TYPE_STRING, .flags = FLAGS }, { "flags", "Flags to pass to libswscale", OFFSET(flags_str), AV_OPT_TYPE_STRING, { .str = "bilinear" }, .flags = FLAGS }, - { "interl", "set interlacing", OFFSET(interlaced), AV_OPT_TYPE_INT, {.i64 = 0 }, -1, 1, FLAGS }, + { "interl", "set interlacing", OFFSET(interlaced), AV_OPT_TYPE_BOOL, {.i64 = 0 }, -1, 1, FLAGS }, { "size", "set video size", OFFSET(size_str), AV_OPT_TYPE_STRING, {.str = NULL}, 0, FLAGS }, { "s", "set video size", OFFSET(size_str), AV_OPT_TYPE_STRING, {.str = NULL}, 0, FLAGS }, { "in_color_matrix", "set input YCbCr type", OFFSET(in_color_matrix), AV_OPT_TYPE_STRING, { .str = "auto" }, .flags = FLAGS }, |