From patchwork Fri Aug 5 21:54:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Burt P X-Patchwork-Id: 102 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.140.67 with SMTP id o64csp1928006vsd; Fri, 5 Aug 2016 15:10:42 -0700 (PDT) X-Received: by 10.194.175.201 with SMTP id cc9mr73102408wjc.38.1470435041720; Fri, 05 Aug 2016 15:10:41 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id y10si20005256wjf.201.2016.08.05.15.10.40; Fri, 05 Aug 2016 15:10:41 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 447FB68A72C; Sat, 6 Aug 2016 01:10:32 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-io0-f194.google.com (mail-io0-f194.google.com [209.85.223.194]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9E76768A726 for ; Sat, 6 Aug 2016 01:10:25 +0300 (EEST) Received: by mail-io0-f194.google.com with SMTP id i199so2867946ioi.1 for ; Fri, 05 Aug 2016 15:10:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=CMYZ6+Lw+qoopwdcReRBghGTeoNoHfJdxkMXc1UJWX0=; b=OxWH2dFlfeaEhedo2jWe8S1hfru0GxUBPHJD2JqxrN061o++IVrGlTtAOoDptfWm2H 0bzBo0n8SW90pSQ2fv1yQYBjmy1YAGIP/uceknWoyR7UxRc2dO/gPnXeZUG6N5rEEQ5B 4a2vdu7lFhvOucDceoHKQ979RK3MucuVLpeYVl9Co0/9xH19HIUGFWtUoacRk/8Pw0Or RnnbQCfnRdFmpu5/t9LO+O3Gnst2X7DWgUI4kuhDAZB5wtBi+6O3b7A9+M0YcdaqwB5e hvH6RA6BVeXy+lBiCRi2bQK/dbYK9zDnx/dqYJ0YVTaz/ejkKFEDNrH2ibT3MPtjX68H /EEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=CMYZ6+Lw+qoopwdcReRBghGTeoNoHfJdxkMXc1UJWX0=; b=TlUKM8miSre8i0k80q1fkI8e1x08kw6yCCf+33ua3TPGQgkWsAyUvWjNm+K+Cg/PvW J7v+SOJUVkz0cT2AJe4yhD7cwBYH4C7d9s0zsh4cefRYRjw8hrBVX6OYKbAvU/UP6nd1 3zYmxz8pNKr3L3RxHkwhsWnXLL1bsCX1B4P9JwVLJKx6T9zamGtsxEnyyxUiEjV94klE sPXuyS3kC30BrdOEQqY/OFjkkvbaCyaJofv3okPnd9MHRGTYe1NjfT0VLDKGCOPnMUio NIbgtq+Xfw9hbzRnERpHr/p1swGbML/gxxLTh+X1/0wJKntTNeF5mT4V0jl8OiLQdGpP VtCA== X-Gm-Message-State: AEkooutVCAzrvfeD/UDJkmXdJ74Agb83IWMvR8J3lB4UzHqlRpowWs81+erfLtBtTWWGmA== X-Received: by 10.107.27.144 with SMTP id b138mr83209175iob.163.1470434104082; Fri, 05 Aug 2016 14:55:04 -0700 (PDT) Received: from localhost.localdomain ([216.16.66.181]) by smtp.gmail.com with ESMTPSA id c192sm4722503ith.11.2016.08.05.14.55.02 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 05 Aug 2016 14:55:03 -0700 (PDT) From: Burt P To: ffmpeg-devel@ffmpeg.org Date: Fri, 5 Aug 2016 16:54:43 -0500 Message-Id: <1470434084-1323-2-git-send-email-pburt0@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1470434084-1323-1-git-send-email-pburt0@gmail.com> References: <1470434084-1323-1-git-send-email-pburt0@gmail.com> Subject: [FFmpeg-devel] [PATCH 1/2] af_hdcd: convert AVOptions from INT to 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 MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" As suggested by Timothy Gu. Signed-off-by: Burt P --- libavfilter/af_hdcd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/af_hdcd.c b/libavfilter/af_hdcd.c index ef3c369..610dd9e 100644 --- a/libavfilter/af_hdcd.c +++ b/libavfilter/af_hdcd.c @@ -906,9 +906,9 @@ typedef struct HDCDContext { #define A AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM static const AVOption hdcd_options[] = { { "process_stereo", "Process stereo channels together. Only apply target_gain when both channels match.", - OFFSET(process_stereo), AV_OPT_TYPE_INT, { .i64 = HDCD_PROCESS_STEREO_DEFAULT }, 0, 1, A }, + OFFSET(process_stereo), AV_OPT_TYPE_BOOL, { .i64 = HDCD_PROCESS_STEREO_DEFAULT }, 0, 1, A }, { "force_pe", "Always extend peaks above -3dBFS even when PE is not signaled.", - OFFSET(force_pe), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 1, A }, + OFFSET(force_pe), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, A }, {NULL} };