[FFmpeg-cvslog] avfilter/avf_showvolume: let fade be also exactly 0

Paul B Mahol git at videolan.org
Sat Mar 31 10:36:38 EEST 2018


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Mar 31 09:26:37 2018 +0200| [0c25caa4708cc3a89a9ee9666d0257e6dc6a1573] | committer: Paul B Mahol

avfilter/avf_showvolume: let fade be also exactly 0

Signed-off-by: Paul B Mahol <onemda at gmail.com>

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

 doc/filters.texi             | 2 +-
 libavfilter/avf_showvolume.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/filters.texi b/doc/filters.texi
index c05b12849f..bf2b94e240 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -19936,7 +19936,7 @@ Set channel width, allowed range is [80, 8192]. Default is 400.
 Set channel height, allowed range is [1, 900]. Default is 20.
 
 @item f
-Set fade, allowed range is [0.001, 1]. Default is 0.95.
+Set fade, allowed range is [0, 1]. Default is 0.95.
 
 @item c
 Set volume color expression.
diff --git a/libavfilter/avf_showvolume.c b/libavfilter/avf_showvolume.c
index 6c47cce19f..267020e163 100644
--- a/libavfilter/avf_showvolume.c
+++ b/libavfilter/avf_showvolume.c
@@ -67,7 +67,7 @@ static const AVOption showvolume_options[] = {
     { "b", "set border width",   OFFSET(b), AV_OPT_TYPE_INT, {.i64=1}, 0, 5, FLAGS },
     { "w", "set channel width",  OFFSET(w), AV_OPT_TYPE_INT, {.i64=400}, 80, 8192, FLAGS },
     { "h", "set channel height", OFFSET(h), AV_OPT_TYPE_INT, {.i64=20}, 1, 900, FLAGS },
-    { "f", "set fade",           OFFSET(f), AV_OPT_TYPE_DOUBLE, {.dbl=0.95}, 0.001, 1, FLAGS },
+    { "f", "set fade",           OFFSET(f), AV_OPT_TYPE_DOUBLE, {.dbl=0.95}, 0, 1, FLAGS },
     { "c", "set volume color expression", OFFSET(color), AV_OPT_TYPE_STRING, {.str="PEAK*255+floor((1-PEAK)*255)*256+0xff000000"}, 0, 0, FLAGS },
     { "t", "display channel names", OFFSET(draw_text), AV_OPT_TYPE_BOOL, {.i64=1}, 0, 1, FLAGS },
     { "v", "display volume value", OFFSET(draw_volume), AV_OPT_TYPE_BOOL, {.i64=1}, 0, 1, FLAGS },



More information about the ffmpeg-cvslog mailing list