From: softworkz <ffmpegagent@gmail.com> To: ffmpeg-devel@ffmpeg.org Cc: softworkz <softworkz@hotmail.com> Subject: [FFmpeg-devel] [PATCH 1/2] fftools/resman: remove unused includes, fix declaration Date: Sat, 31 May 2025 01:50:28 +0000 Message-ID: <4d7af186ce9f8a8d3b12cdc2c979ea54320eed96.1748656229.git.ffmpegagent@gmail.com> (raw) In-Reply-To: <pull.90.ffstaging.FFmpeg.1748656229.ffmpegagent@gmail.com> From: softworkz <softworkz@hotmail.com> Signed-off-by: softworkz <softworkz@hotmail.com> --- 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 <stdint.h> - -#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".
next prev parent reply other threads:[~2025-05-31 1:50 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2025-05-31 1:50 [FFmpeg-devel] [PATCH 0/2] fftools/resman: remove redundant includes, use inflate loop ffmpegagent 2025-05-31 1:50 ` softworkz [this message] 2025-05-31 1:50 ` [FFmpeg-devel] [PATCH 2/2] fftools/resman: use inflate loop with increasing buffer size softworkz 2025-05-31 2:38 ` Kieran Kunhya via ffmpeg-devel 2025-05-31 2:45 ` softworkz . 2025-05-31 3:57 ` softworkz . 2025-05-31 3:58 ` [FFmpeg-devel] [PATCH v2 0/2] fftools/resman: remove redundant includes, use inflate loop ffmpegagent 2025-05-31 3:58 ` [FFmpeg-devel] [PATCH v2 1/2] fftools/resman: remove unused includes, fix declaration softworkz 2025-06-02 1:28 ` Michael Niedermayer 2025-06-02 1:42 ` softworkz . 2025-06-02 3:28 ` softworkz . 2025-05-31 3:58 ` [FFmpeg-devel] [PATCH v2 2/2] fftools/resman: uncompress to actual-size memory buffers softworkz
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=4d7af186ce9f8a8d3b12cdc2c979ea54320eed96.1748656229.git.ffmpegagent@gmail.com \ --to=ffmpegagent@gmail.com \ --cc=ffmpeg-devel@ffmpeg.org \ --cc=softworkz@hotmail.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git