From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id D00C04A209 for ; Wed, 24 Apr 2024 11:03:22 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id E687668D378; Wed, 24 Apr 2024 14:03:12 +0300 (EEST) Received: from haasn.dev (haasn.dev [78.46.187.166]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 6424168D0D9 for ; Wed, 24 Apr 2024 14:03:05 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=haasn.xyz; s=mail; t=1713956585; bh=6DlGxItr7azfF8Chmhe3+CdUWCuKAbGhYNu9WRaMjhw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gqwfkYB9CwWtxkucnrX0qj5+wNGyFFAI5hBz0noq/6vRRxE+K4yXHagZlszqpE7K4 PrGzURdI7qqvpm018vBKunXuRC4kgn3A4XWt3C2u7EUy3TE/FCz4RoNM8PvhYrpSih 4WGJBrWZ3qFD8D11edySQ+8C6Ca2l6fLKslfiKko= Received: from haasn.dev (unknown [10.30.0.2]) by haasn.dev (Postfix) with ESMTP id 2E01A423A7; Wed, 24 Apr 2024 13:03:05 +0200 (CEST) From: Niklas Haas To: ffmpeg-devel@ffmpeg.org Date: Wed, 24 Apr 2024 12:51:56 +0200 Message-ID: <20240424110257.38715-2-ffmpeg@haasn.xyz> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240424110257.38715-1-ffmpeg@haasn.xyz> References: <20240424110257.38715-1-ffmpeg@haasn.xyz> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/5] avfilter/framesync: make framesync_class un-static X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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: Niklas Haas Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: From: Niklas Haas And rename to ff_framesync_class. More convenient for downstream users. --- libavfilter/framesync.c | 6 +++--- libavfilter/framesync.h | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/libavfilter/framesync.c b/libavfilter/framesync.c index 1afd70ab21..a691136f34 100644 --- a/libavfilter/framesync.c +++ b/libavfilter/framesync.c @@ -51,7 +51,7 @@ static const AVOption framesync_options[] = { 0, AV_OPT_TYPE_CONST, { .i64 = TS_NEAREST }, .flags = FLAGS, .unit = "ts_sync_mode" }, { NULL } }; -static const AVClass framesync_class = { +const AVClass ff_framesync_class = { .version = LIBAVUTIL_VERSION_INT, .class_name = "framesync", .item_name = framesync_name, @@ -62,7 +62,7 @@ static const AVClass framesync_class = { const AVClass *ff_framesync_child_class_iterate(void **iter) { - const AVClass *c = *iter ? NULL : &framesync_class; + const AVClass *c = *iter ? NULL : &ff_framesync_class; *iter = (void *)(uintptr_t)c; return c; } @@ -79,7 +79,7 @@ void ff_framesync_preinit(FFFrameSync *fs) { if (fs->class) return; - fs->class = &framesync_class; + fs->class = &ff_framesync_class; av_opt_set_defaults(fs); } diff --git a/libavfilter/framesync.h b/libavfilter/framesync.h index 233f50a0eb..130d067bae 100644 --- a/libavfilter/framesync.h +++ b/libavfilter/framesync.h @@ -316,6 +316,7 @@ int ff_framesync_dualinput_get(FFFrameSync *fs, AVFrame **f0, AVFrame **f1); int ff_framesync_dualinput_get_writable(FFFrameSync *fs, AVFrame **f0, AVFrame **f1); const AVClass *ff_framesync_child_class_iterate(void **iter); +extern const AVClass ff_framesync_class; #define FRAMESYNC_DEFINE_PURE_CLASS(name, desc, func_prefix, options) \ static const AVClass name##_class = { \ -- 2.44.0 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".