From patchwork Tue Feb 2 11:51:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul B Mahol X-Patchwork-Id: 25340 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 9E67B44ACAF for ; Tue, 2 Feb 2021 13:51:43 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 774EB689257; Tue, 2 Feb 2021 13:51:43 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 8C2CD68924E for ; Tue, 2 Feb 2021 13:51:37 +0200 (EET) Received: by mail-ed1-f49.google.com with SMTP id d2so22578898edz.3 for ; Tue, 02 Feb 2021 03:51:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=rj2FojLUFsrAnNQfVic/dJ1UAsES6/Y7ZdV2mW0aeC8=; b=nzOZLS1Y2MiEVebQ43kFv2LpGIuTBqGPlniXZ2p1ksQta6IfgYK0YK1bIsGTPDbc8M EBDwIw0MghxDcNadtYdY+IBpvyQemtjMxVHleca6df7X+++nfm22o7NZPcWAFcZchuqZ 2YcZW6ghJ6B1dKloYUsB6yo3ITZgagZJyoFt7p/4TG9AQo0JR5iYLkybvytVElY4eui2 VEtmPSnPETQxyhEyJq1GPEIPzXXVswc8yS45EKC3VOUXPDjYetOFUTtN2bFPKMUlnukF KwqjKaVMnNH46TJ8DORzN13r0pneZW0jO9d9NwGIJP+pRNU83waKaexa4VivBmeCZaXf 5TZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=rj2FojLUFsrAnNQfVic/dJ1UAsES6/Y7ZdV2mW0aeC8=; b=b/axLSL/5xX29xPMr1mgY4QpSDEESiFLrbd21sp6nj3/mD1zrq4H/924SBYLtls7Xc ueUokxb5MUSCUZGMrReaINYBT+seqTZHZawYYQ473ADwnRK6UY0LT2eeFdgXv41QinwF TV5eHJYQHs9fiH7muIwzqUF5i2wCd44FUVtcDsKwPSS7Shz88ZX6hZ/SxT3dDUYAU52F YOmozZC9DHKkdYIEXsL9kuvX1qYoSQZTf04CZTIXWhl62POf5UkQSYzkKFh/zZa52sVd LBvXlp0sueBmKbAuOUyVlRSgiRst59VSTVd2DWRt1FKsqrydhjPShEaajS8Ot87qGmZ5 UmZQ== X-Gm-Message-State: AOAM533jHsr/ZHuznoYO46+QN8YaTJzGfD4sXx+oRzHVgIJ4O2+KHJAX 1QChFrPaoGM61iqdz/z3fbUTwsC0O38plA== X-Google-Smtp-Source: ABdhPJx4pGHrSaaoOy9ERNuuIVr5CYkxgTFfGjaTiHQoHHm+2n48zMreL2rPFJIgmelmeu/tWVcOvg== X-Received: by 2002:a05:6402:c9:: with SMTP id i9mr23183177edu.123.1612266696982; Tue, 02 Feb 2021 03:51:36 -0800 (PST) Received: from localhost.localdomain ([31.45.254.141]) by smtp.gmail.com with ESMTPSA id x20sm9240735ejv.66.2021.02.02.03.51.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Feb 2021 03:51:36 -0800 (PST) From: Paul B Mahol To: ffmpeg-devel@ffmpeg.org Date: Tue, 2 Feb 2021 12:51:28 +0100 Message-Id: <20210202115128.25345-1-onemda@gmail.com> X-Mailer: git-send-email 2.17.1 Subject: [FFmpeg-devel] [PATCH] avfilter/avfilter: mark enable as runtime option too 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" Signed-off-by: Paul B Mahol --- libavfilter/avfilter.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 8ff22c71e3..4c52d83842 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -620,11 +620,12 @@ static const AVClass *filter_child_class_iterate(void **iter) #define OFFSET(x) offsetof(AVFilterContext, x) #define FLAGS AV_OPT_FLAG_FILTERING_PARAM +#define TFLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_RUNTIME_PARAM static const AVOption avfilter_options[] = { { "thread_type", "Allowed thread types", OFFSET(thread_type), AV_OPT_TYPE_FLAGS, { .i64 = AVFILTER_THREAD_SLICE }, 0, INT_MAX, FLAGS, "thread_type" }, { "slice", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AVFILTER_THREAD_SLICE }, .flags = FLAGS, .unit = "thread_type" }, - { "enable", "set enable expression", OFFSET(enable_str), AV_OPT_TYPE_STRING, {.str=NULL}, .flags = FLAGS }, + { "enable", "set enable expression", OFFSET(enable_str), AV_OPT_TYPE_STRING, {.str=NULL}, .flags = TFLAGS }, { "threads", "Allowed number of threads", OFFSET(nb_threads), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INT_MAX, FLAGS }, { "extra_hw_frames", "Number of extra hardware frames to allocate for the user",