[FFmpeg-devel] [PATCH 3/3] aviobuf: Increase the default SHORT_SEEK_THRESHOLD to 32 KB

Martin Storsjö martin at martin.st
Fri Oct 30 14:31:15 EET 2020


On Fri, 30 Oct 2020, Martin Storsjö wrote:

> The previous threshold, 4 KB, maybe was reasonable when it was set
> (in 2010), but in today's settings and with typical network speeds
> and data sizes, it's pretty small. 32 KB probably is a more reasonable
> default now, regardless of input.
> ---
> libavformat/aviobuf.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c
> index a77517d712..e1acb3890c 100644
> --- a/libavformat/aviobuf.c
> +++ b/libavformat/aviobuf.c
> @@ -40,7 +40,7 @@
>  * data instead of calling the protocol seek function, for seekable
>  * protocols.
>  */
> -#define SHORT_SEEK_THRESHOLD 4096
> +#define SHORT_SEEK_THRESHOLD 32768
>

I see that this change changes a few test cases in fate-seek-lavf-{al,ul}, 
will try to have a look at what they are and if we just should update the 
references, or if something else should be done here...

// Martin


More information about the ffmpeg-devel mailing list