[FFmpeg-devel] [PATCH 2/2] avformat/aviobuf: increase SHORT_SEEK_THRESHOLD from 4096 to 8192

Michael Niedermayer michaelni at gmx.at
Thu Mar 27 00:24:25 CET 2014


This reduces the time spent opening a mov file over https from 41 to 2 seconds

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 libavformat/aviobuf.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c
index 622f22c..43a8857 100644
--- a/libavformat/aviobuf.c
+++ b/libavformat/aviobuf.c
@@ -39,7 +39,7 @@
  * data instead of calling the protocol seek function, for seekable
  * protocols.
  */
-#define SHORT_SEEK_THRESHOLD 4096
+#define SHORT_SEEK_THRESHOLD 8192
 
 static void *ffio_url_child_next(void *obj, void *prev)
 {
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list