From patchwork Tue Oct 8 15:04:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lance Wang X-Patchwork-Id: 15580 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id CE10644AA62 for ; Tue, 8 Oct 2019 18:05:12 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id B64DD688161; Tue, 8 Oct 2019 18:05:12 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 6F8B2687FF5 for ; Tue, 8 Oct 2019 18:05:06 +0300 (EEST) Received: by mail-pf1-f193.google.com with SMTP id q12so10916479pff.9 for ; Tue, 08 Oct 2019 08:05:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Z97WIaJITKtMuzSEei8XU7kkJqx7gBEtE9GuHFsCWyQ=; b=WSeWMuXnTkchksrzPpi0sL0i/1CHcqtW2wlVeJ+OyTQM25lmURgTttkXagzr6oH4h3 V1B2OhaXHRA9b3jwScEXwD43m3e4xvkLCnY/ZyT0nEW9rdHwTyWOPzvyJWVnmyaXMBzD 084XitaMsZoJt9kgpNIyf5DNlSeFSK+euTOKRymY7d2c3ykvWQ6NcFT1CvBXrW4d8h6j LgQCgTJK1KSrRGgsWYP1q4YY4Ew6ZxiC0cN/q2rttN0qFzFnvh0N361aYsoRNwtwOieO AFFOPicr39enmAN1stmCWl3mh3mKjtAUzpOCLZpqWps3+sRhHolZnwluvpkcJRx0su5p YDDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Z97WIaJITKtMuzSEei8XU7kkJqx7gBEtE9GuHFsCWyQ=; b=UNynRmE3+xDbBfzOFTHqUlu1YBgSb3mq9+i0yLdQg5ldvw9afp4U3h5LSw+ZJDau/K rLm1oWZgJZiAe0tBZoNxIat7NdWcGkICMhks4jJKTdNHiscEzz1J9fY4OTpk4ADf7Cj/ 7c5iWGxl9LPcnDTV9lg/qWDk0B7un4997IJ5wbPyHm8+7nAN4/K1lNN9H9SuSl+JCM7j I2DOYwdecz83e/Qto1lc54rCvb+8rkY8pWWLoaLI1EhQGGNeGEurEWqAvqJvbyTNWWn6 8zzTEPUR+T4dABgMXMl4tBLjLOEHRumxY2RGvaLyp65oVBsNbK54Q/2emRiJ6S5flqnX XFJA== X-Gm-Message-State: APjAAAVXWhcFITfT2K/vohOPZPXF37zltBAKK8EiQPUJLthvymhoF2/p ZENQYAH9+HT2Gv1lKFi2PQGcfAGO X-Google-Smtp-Source: APXvYqyGEU/Myfp9gUioFwktwMomxb7w40qyJ9MFPit9HKT1SmFVGRT0Z1HOyRyZyONb8Xngcgt6Vw== X-Received: by 2002:aa7:9e05:: with SMTP id y5mr41052377pfq.38.1570547104608; Tue, 08 Oct 2019 08:05:04 -0700 (PDT) Received: from vpn.localdomain ([47.90.99.151]) by smtp.gmail.com with ESMTPSA id 127sm23533880pfy.56.2019.10.08.08.05.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Oct 2019 08:05:03 -0700 (PDT) From: lance.lmwang@gmail.com To: ffmpeg-devel@ffmpeg.org Date: Tue, 8 Oct 2019 23:04:53 +0800 Message-Id: <20191008150453.30222-3-lance.lmwang@gmail.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20191008150453.30222-1-lance.lmwang@gmail.com> References: <20190930133647.6290-1-lance.lmwang@gmail.com> <20191008150453.30222-1-lance.lmwang@gmail.com> Subject: [FFmpeg-devel] [PATCH v3 3/3] avfilter/af_silencedetect: change mono default to 0 for bool X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Limin Wang MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/af_silencedetect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/af_silencedetect.c b/libavfilter/af_silencedetect.c index 3eb378d..ff3b219 100644 --- a/libavfilter/af_silencedetect.c +++ b/libavfilter/af_silencedetect.c @@ -58,8 +58,8 @@ static const AVOption silencedetect_options[] = { { "noise", "set noise tolerance", OFFSET(noise), AV_OPT_TYPE_DOUBLE, {.dbl=0.001}, 0, DBL_MAX, FLAGS }, { "d", "set minimum duration in seconds", OFFSET(duration), AV_OPT_TYPE_DURATION, {.i64=2000000}, 0, MAX_DURATION,FLAGS }, { "duration", "set minimum duration in seconds", OFFSET(duration), AV_OPT_TYPE_DURATION, {.i64=2000000}, 0, MAX_DURATION,FLAGS }, - { "mono", "check each channel separately", OFFSET(mono), AV_OPT_TYPE_BOOL, {.i64=0.}, 0, 1, FLAGS }, - { "m", "check each channel separately", OFFSET(mono), AV_OPT_TYPE_BOOL, {.i64=0.}, 0, 1, FLAGS }, + { "mono", "check each channel separately", OFFSET(mono), AV_OPT_TYPE_BOOL, {.i64=0}, 0, 1, FLAGS }, + { "m", "check each channel separately", OFFSET(mono), AV_OPT_TYPE_BOOL, {.i64=0}, 0, 1, FLAGS }, { NULL } };