[FFmpeg-cvslog] avfilter/waveform: use AV_OPT_TYPE_BOOL for mirror option

Clément Bœsch git at videolan.org
Wed Sep 9 01:04:59 CEST 2015


ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Wed Sep  9 01:04:28 2015 +0200| [c826f9b2848775a428019b2fd907a0f3281fed4e] | committer: Clément Bœsch

avfilter/waveform: use AV_OPT_TYPE_BOOL for mirror option

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c826f9b2848775a428019b2fd907a0f3281fed4e
---

 libavfilter/vf_waveform.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavfilter/vf_waveform.c b/libavfilter/vf_waveform.c
index b2468c1..b68d429 100644
--- a/libavfilter/vf_waveform.c
+++ b/libavfilter/vf_waveform.c
@@ -73,8 +73,8 @@ static const AVOption waveform_options[] = {
         { "column", NULL, 0, AV_OPT_TYPE_CONST, {.i64=1}, 0, 0, FLAGS, "mode" },
     { "intensity", "set intensity", OFFSET(fintensity), AV_OPT_TYPE_FLOAT, {.dbl=0.04}, 0, 1, FLAGS },
     { "i",         "set intensity", OFFSET(fintensity), AV_OPT_TYPE_FLOAT, {.dbl=0.04}, 0, 1, FLAGS },
-    { "mirror", "set mirroring", OFFSET(mirror), AV_OPT_TYPE_INT, {.i64=1}, 0, 1, FLAGS },
-    { "r",      "set mirroring", OFFSET(mirror), AV_OPT_TYPE_INT, {.i64=1}, 0, 1, FLAGS },
+    { "mirror", "set mirroring", OFFSET(mirror), AV_OPT_TYPE_BOOL, {.i64=1}, 0, 1, FLAGS },
+    { "r",      "set mirroring", OFFSET(mirror), AV_OPT_TYPE_BOOL, {.i64=1}, 0, 1, FLAGS },
     { "display", "set display mode", OFFSET(display), AV_OPT_TYPE_INT, {.i64=1}, 0, 1, FLAGS, "display" },
     { "d",       "set display mode", OFFSET(display), AV_OPT_TYPE_INT, {.i64=1}, 0, 1, FLAGS, "display" },
         { "overlay", NULL, 0, AV_OPT_TYPE_CONST, {.i64=0}, 0, 0, FLAGS, "display" },



More information about the ffmpeg-cvslog mailing list