From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id BCBA84D219 for ; Sat, 31 May 2025 01:50:56 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 3883268D97D; Sat, 31 May 2025 04:50:49 +0300 (EEST) Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 5F1B568D4C1 for ; Sat, 31 May 2025 04:50:42 +0300 (EEST) Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-72d3b48d2ffso2152594b3a.2 for ; Fri, 30 May 2025 18:50:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1748656241; x=1749261041; darn=ffmpeg.org; h=cc:to:mime-version:content-transfer-encoding:fcc:subject:date :references:in-reply-to:message-id:from:from:to:cc:subject:date :message-id:reply-to; bh=I3H4bKYJVyK/JL9WgOK0nyFIzvfmyh8GgMXcFwd5FRA=; b=T8a+kgIcWc8xiML4dBL8etpkULLMKcQ1FnNfnnDEMhdE75eF9plEBPd54XbnMA2e56 UeOGtRGD0IaylwNWdI/TRFll8DargwFnqStz9UxnmxgGnphhIbhQj4S6XPsUEJh8FH/y Erhre+Aw/GjqN/Vkk07ajdzyF7ucN9eHHQ2lKLaFga8k1d/iMOVKuQjrVHchq0paYCwI FiBkgzfwsRPmoPdbAoVS0EqJlY9tvyLEtoP29/9Nk25AqKYTdJDG2jFq65toxW1+ZyVT +AA1DeIaQdT7SWw7NCL00aVsGLf2yCLWDkAQMs3ZXMAi07QtWc5aaoc4aJz4zcYaOLdh 0w4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748656241; x=1749261041; h=cc:to:mime-version:content-transfer-encoding:fcc:subject:date :references:in-reply-to:message-id:from:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=I3H4bKYJVyK/JL9WgOK0nyFIzvfmyh8GgMXcFwd5FRA=; b=UR/xmpTF+JEBlMN3gOyu5YFAkwLro3Oa1CkZvwneVZoPFieQ52xrkuZTIVPa0qwJi3 /antlyZPSaF5kJb6pdPT4SxyRkehFybIfQb0R96U54mKOp5wbcwxvw1WECifebg7T9Fj oArRfuo7692BN9ZvpkOnRf4UVRlcAHM7rVT7SEahllHPuYc2N8HFWo4XCnOXYxbYqcom +BVaniAVkjCEOVT7oUwdBeLXEJOmetrPZou2zfsqIJF23Hr8ElUIvZYaqPRkUI5JQhJn Wu6rrwaSuzoR2iOSDNybmwjv8k+GoRnZhER3zi2fQiwKFFPSX+hrucJY9tRMkf/9NjxI bF1A== X-Gm-Message-State: AOJu0YzmQ4w75BH22iQS93nQZ9oTYs3Lh4Lvt4GHm1UrshGJlfnQPlcP LPmQWEF204GoLVMjHZ+cUh3JusnqD4P84zVfyqfoBN1qut3moN+ThTUWUvaZnw== X-Gm-Gg: ASbGncuJtC00Rh1mjmy9JtRWIJmgX5NAxQ3y1TnJL7sHa0/DyboS8I0PlY8u39ga9RD Z368/0IuHaPZWtxrKKumEFtfzVva0s+MTyAzC6eL8vyBQLUSMdtsXxWv74H53z0/Mfq9fMfbNmC f6EUt3ZiyyuKlhjjNnU7TvGtLPJK/M1eyk7eXmsGByfUaRfgprRB+gsIinVeOKcodHXnbPxB9nV ghjhjdn2O6Ir6fWSiG7qFoPkcVbycCod8nxUdkibgBdPorM8zoSEEQa2idK7uzw3FMDpMn5mgbE CN1ObceKOb0nMmddVugZDHHMk9U0Ib2GNqzp/vshqtRX9EjhtRkPPP0VUIvbkKbVSbO5Hu4Qro/ SpqKv X-Google-Smtp-Source: AGHT+IFG7/VtRx0FFh6DtGSNpXy1PVwTAwpElp4f3VTQgkoNJ7mcHxwQDFZsY+6myYdpl6WUuiDARQ== X-Received: by 2002:a05:6a00:1256:b0:736:51ab:7aed with SMTP id d2e1a72fcca58-747c1c36c5emr5233981b3a.16.1748656240562; Fri, 30 May 2025 18:50:40 -0700 (PDT) Received: from [127.0.0.1] (master.gitmailbox.com. [34.83.118.50]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-747afeab79bsm3794960b3a.50.2025.05.30.18.50.40 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 May 2025 18:50:40 -0700 (PDT) From: softworkz X-Google-Original-From: softworkz Message-Id: <4d7af186ce9f8a8d3b12cdc2c979ea54320eed96.1748656229.git.ffmpegagent@gmail.com> In-Reply-To: References: Date: Sat, 31 May 2025 01:50:28 +0000 Fcc: Sent MIME-Version: 1.0 To: ffmpeg-devel@ffmpeg.org Subject: [FFmpeg-devel] [PATCH 1/2] fftools/resman: remove unused includes, fix declaration 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: softworkz 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: softworkz Signed-off-by: softworkz --- fftools/resources/resman.c | 7 +++---- fftools/resources/resman.h | 10 +--------- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/fftools/resources/resman.c b/fftools/resources/resman.c index a9e21626fa..f098bd6687 100644 --- a/fftools/resources/resman.c +++ b/fftools/resources/resman.c @@ -34,7 +34,6 @@ #include "resman.h" #include "fftools/ffmpeg_filter.h" #include "libavutil/avassert.h" -#include "libavutil/pixdesc.h" #include "libavutil/dict.h" #include "libavutil/common.h" @@ -61,7 +60,7 @@ typedef struct ResourceManagerContext { static AVMutex mutex = AV_MUTEX_INITIALIZER; -ResourceManagerContext *resman_ctx = NULL; +static ResourceManagerContext *resman_ctx = NULL; #if CONFIG_RESOURCE_COMPRESSION @@ -77,7 +76,7 @@ static int decompress_gzip(ResourceManagerContext *ctx, uint8_t *in, unsigned in memset(&strm, 0, sizeof(strm)); // Allocate output buffer with extra byte for null termination - buf = (uint8_t *)av_mallocz(chunk + 1); + buf = av_mallocz(chunk + 1); if (!buf) { av_log(ctx, AV_LOG_ERROR, "Failed to allocate decompression buffer\n"); return AVERROR(ENOMEM); @@ -156,7 +155,7 @@ void ff_resman_uninit(void) } -char *ff_resman_get_string(FFResourceId resource_id) +const char *ff_resman_get_string(FFResourceId resource_id) { ResourceManagerContext *ctx = get_resman_context(); FFResourceDefinition resource_definition = { 0 }; diff --git a/fftools/resources/resman.h b/fftools/resources/resman.h index 6485db5091..dfe6b324e4 100644 --- a/fftools/resources/resman.h +++ b/fftools/resources/resman.h @@ -21,14 +21,6 @@ #ifndef FFTOOLS_RESOURCES_RESMAN_H #define FFTOOLS_RESOURCES_RESMAN_H -#include - -#include "config.h" -#include "fftools/ffmpeg.h" -#include "libavutil/avutil.h" -#include "libavutil/bprint.h" -#include "fftools/textformat/avtextformat.h" - typedef enum { FF_RESOURCE_GRAPH_CSS, FF_RESOURCE_GRAPH_HTML, @@ -45,6 +37,6 @@ typedef struct FFResourceDefinition { void ff_resman_uninit(void); -char *ff_resman_get_string(FFResourceId resource_id); +const char *ff_resman_get_string(FFResourceId resource_id); #endif /* FFTOOLS_RESOURCES_RESMAN_H */ -- ffmpeg-codebot _______________________________________________ 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".