[FFmpeg-cvslog] avfilter/silenceremove: use AV_OPT_TYPE_BOOL for leave_silence option

Clément Bœsch git at videolan.org
Tue Sep 8 23:17:12 CEST 2015


ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Tue Sep  8 23:16:49 2015 +0200| [5c64ae64bde8699f7f45e283e139f75f7f2c30b7] | committer: Clément Bœsch

avfilter/silenceremove: use AV_OPT_TYPE_BOOL for leave_silence option

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

 libavfilter/af_silenceremove.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/af_silenceremove.c b/libavfilter/af_silenceremove.c
index cd1e038..3323838 100644
--- a/libavfilter/af_silenceremove.c
+++ b/libavfilter/af_silenceremove.c
@@ -81,7 +81,7 @@ static const AVOption silenceremove_options[] = {
     { "stop_periods",    NULL, OFFSET(stop_periods),    AV_OPT_TYPE_INT,      {.i64=0}, -9000,    9000, FLAGS },
     { "stop_duration",   NULL, OFFSET(stop_duration),   AV_OPT_TYPE_DURATION, {.i64=0},     0,    9000, FLAGS },
     { "stop_threshold",  NULL, OFFSET(stop_threshold),  AV_OPT_TYPE_DOUBLE,   {.dbl=0},     0, DBL_MAX, FLAGS },
-    { "leave_silence",   NULL, OFFSET(leave_silence),   AV_OPT_TYPE_INT,      {.i64=0},     0,       1, FLAGS },
+    { "leave_silence",   NULL, OFFSET(leave_silence),   AV_OPT_TYPE_BOOL,     {.i64=0},     0,       1, FLAGS },
     { NULL }
 };
 



More information about the ffmpeg-cvslog mailing list