From: joneyao6@gmail.com
To: ffmpeg-devel@ffmpeg.org
Cc: Jingwei Yao <joneyao6@gmail.com>
Subject: [FFmpeg-devel] [PATCH 1/1] avformat/avio: add configuration options for IO_BUFFER_SIZE
Date: Tue, 11 Mar 2025 19:44:40 +0800
Message-ID: <20250311114440.442-1-joneyao6@gmail.com> (raw)
From: Jingwei Yao <joneyao6@gmail.com>
Signed-off-by: Jingwei Yao <joneyao6@gmail.com>
---
configure | 6 ++++++
libavformat/aviobuf.c | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index 04b83a8868..8ee33a4ba9 100755
--- a/configure
+++ b/configure
@@ -437,6 +437,7 @@ Advanced options (experts only):
disable buffer boundary checking in bitreaders
(faster, but may crash)
--sws-max-filter-size=N the max filter size swscale uses [$sws_max_filter_size_default]
+ --avio-buffer-size=N the max buffer size aviobuf uses [$avio_buffer_size_default]
Optimization options (experts only):
--disable-asm disable all assembly optimizations
@@ -2693,6 +2694,7 @@ CMDLINE_SET="
arch
as
assert_level
+ avio_buffer_size
build_suffix
cc
objcc
@@ -4181,6 +4183,9 @@ enable valgrind_backtrace
sws_max_filter_size_default=256
set_default sws_max_filter_size
+avio_buffer_size_default=32768
+set_default avio_buffer_size
+
# internal components are enabled by default
enable $EXTRALIBS_LIST
@@ -8259,6 +8264,7 @@ cat > $TMPH <<EOF
#define BUILDSUF "$build_suffix"
#define SLIBSUF "$SLIBSUF"
#define SWS_MAX_FILTER_SIZE $sws_max_filter_size
+#define AVIO_BUFFER_SIZE $avio_buffer_size
EOF
test -n "$assert_level" &&
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c
index 6a74c1ce68..7760c34ec9 100644
--- a/libavformat/aviobuf.c
+++ b/libavformat/aviobuf.c
@@ -33,7 +33,7 @@
#include "internal.h"
#include <stdarg.h>
-#define IO_BUFFER_SIZE 32768
+#define IO_BUFFER_SIZE AVIO_BUFFER_SIZE
/**
* Do seeks within this distance ahead of the current buffer by skipping
--
2.25.1
_______________________________________________
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 reply other threads:[~2025-03-11 11:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-11 11:44 joneyao6 [this message]
2025-03-11 11:55 ` Nicolas George
2025-03-13 9:40 ` 姚靖威
2025-03-13 10:25 ` Zhao Zhili
2025-03-13 11:30 ` 姚靖威
2025-03-13 12:50 ` Zhao Zhili
2025-03-13 16:24 ` 姚靖威
2025-03-13 12:56 ` Nicolas George
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=20250311114440.442-1-joneyao6@gmail.com \
--to=joneyao6@gmail.com \
--cc=ffmpeg-devel@ffmpeg.org \
/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