From patchwork Sat Sep 28 09:53:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 51902 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:d8ca:0:b0:48e:c0f8:d0de with SMTP id dy10csp895746vqb; Sat, 28 Sep 2024 02:55:00 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXQ/u78umSd4U3uBaO8vXnxND2xHbVqlOp6ef/LU2DSGzK1KJGMF5R3fUXnnNVHvo1k/IC83ZKv5recAbRziDOP@gmail.com X-Google-Smtp-Source: AGHT+IEkJri7O4fkz6J8RysaYqBkuZj59mASyHZoG0G9fbzRdKMc04b26BHfQnldHrS2YWV5Pk/q X-Received: by 2002:a05:6402:1d48:b0:5c8:784e:149c with SMTP id 4fb4d7f45d1cf-5c882607903mr5250789a12.31.1727517299999; Sat, 28 Sep 2024 02:54:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1727517299; cv=none; d=google.com; s=arc-20240605; b=LHlMoMgLED+HlOJ6Frwv+o+gB9GuRY4/wIb54iCpH8wCQkHJLkjKszTu+MndTl0KEK iqCQklwbi8ZYEjtXWpgW6O8YCEFUHhh5AJ6QtLYrIvbdrtRBAkzWMGgzk00oZSHP72xP PY156ZeItjn8ZYdpK64GXTkf1sYE02BGU/Pf05s7iBjPgXjXzsOXTXC/uqKZGME6LKCS CvmlvXS3MBfJD0eU2BdABiDoZxKhlFp1iZ/xHMXXOjMZTqpFBnqrSBHz6huHL5PHc7dS Jor99tm2i8zfKpUR+CLZP2Rl9lfJ+9N59o45Dihep52GqUbrpbCYNU1BWvzNIka8gL6W Qb+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to; bh=yTPHAZpkM+IiHxl72h6L/iOoLlBAtHEVnqAV7tzOIRk=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=Pr8WiRfyeZwU8fewsEalyY+QiHzt/9qt0STnX8J08R0iByh4Uq2lQ9UFKqYyyf0150 vuIBJABIy++ZDN2wrGE9LmZJLStQENAdxci8UO0p+3Cbpi+iF3QO16NJwKsMEdcrfwOg KKIqfZKBh8bG+wyCCQhDnXlEQ0kbu6nKs3W5dleBHUDh5qhACrZaj4tx7nd4nvDYxM3C aikXkida5uF4Suj/N0PFqpjk2Trqvh2O8KwOtYI8sjC/r+8yyyuvRyC88LXUFZlMgTph VqysldaC9s9Glm7lkl0NXcEZTJr9OKzQ0kFDV4njxTJwcOHjQd5YrHlNC+AOaBjfV7aD Iqmw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@khirnov.net header.s=mail header.b=iNihUgBC; 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 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id 4fb4d7f45d1cf-5c88248fdb8si2699711a12.226.2024.09.28.02.54.59; Sat, 28 Sep 2024 02:54:59 -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=@khirnov.net header.s=mail header.b=iNihUgBC; 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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id DE71D68DB09; Sat, 28 Sep 2024 12:54:07 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail1.khirnov.net (quelana.khirnov.net [94.230.150.81]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 1017D68DA94 for ; Sat, 28 Sep 2024 12:53:57 +0300 (EEST) Authentication-Results: mail1.khirnov.net; dkim=pass (2048-bit key; unprotected) header.d=khirnov.net header.i=@khirnov.net header.a=rsa-sha256 header.s=mail header.b=iNihUgBC; dkim-atps=neutral Received: from localhost (mail1.khirnov.net [IPv6:::1]) by mail1.khirnov.net (Postfix) with ESMTP id 9943E4E16 for ; Sat, 28 Sep 2024 11:53:56 +0200 (CEST) Received: from mail1.khirnov.net ([IPv6:::1]) by localhost (mail1.khirnov.net [IPv6:::1]) (amavis, port 10024) with ESMTP id 8VHIPiCtvAPv for ; Sat, 28 Sep 2024 11:53:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=khirnov.net; s=mail; t=1727517234; bh=YFRPAnjhCsiqzxVenLTDUeEUj/BZ3DYR3o3jp/78uLY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=iNihUgBCdn3yifP6452U4jHRH0KLzAhwYK7oW9+p91qrNY9bOl4RljBxKH26lWkLr FvXm6Hj142Navg90ccUwyM80mPtlKQz3wTuzlzIkEI5pwbcSF/t4EuZFvgxTox2u3T kOhJrRFP6TCZtTjpU01r8U67YIyjqwcvV665XR7Qs3aUalnRCaAUhY8ZCw5EPDv6PB MeGXHvjjFtVn6zOTF7o/r9GoiTH9Oh/qHUFNwC0c4zLhVjEcnPSvXTt4/tl3spmu6D r+ATPv8W/utRuvtSRcY9BaaSmcU41puvcu3B/9PWLlYoRVjlnGxdyAvbD01Pf2dhaB gyoDE4f1VzzCA== Received: from libav.khirnov.net (libav.khirnov.net [IPv6:2a00:c500:561:201::7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "libav.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail1.khirnov.net (Postfix) with ESMTPS id C3D214DF6 for ; Sat, 28 Sep 2024 11:53:54 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id 8E35E3A0F6F for ; Sat, 28 Sep 2024 11:53:48 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Sat, 28 Sep 2024 11:53:38 +0200 Message-ID: <20240928095341.15552-6-anton@khirnov.net> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240928095341.15552-1-anton@khirnov.net> References: <20240928095341.15552-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 6/9] fftools/ffmpeg_mux_init: do not export forced_keyframes_const_names[] 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: K1PAawMz6hTu It is only used in this file. --- fftools/ffmpeg.h | 2 -- fftools/ffmpeg_mux_init.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h index 0f5809b752..9439be0f41 100644 --- a/fftools/ffmpeg.h +++ b/fftools/ffmpeg.h @@ -539,8 +539,6 @@ typedef struct EncStats { int lock_initialized; } EncStats; -extern const char *const forced_keyframes_const_names[]; - enum { KF_FORCE_SOURCE = 1, #if FFMPEG_OPT_FORCE_KF_SOURCE_NO_DROP diff --git a/fftools/ffmpeg_mux_init.c b/fftools/ffmpeg_mux_init.c index 033fa6aba8..117b1a4338 100644 --- a/fftools/ffmpeg_mux_init.c +++ b/fftools/ffmpeg_mux_init.c @@ -3087,7 +3087,7 @@ finish: return ret; } -const char *const forced_keyframes_const_names[] = { +static const char *const forced_keyframes_const_names[] = { "n", "n_forced", "prev_forced_n",