[vlc-commits] Increase the avformat mux buffer size to 10 MB.

Steinar H. Gunderson git at videolan.org
Thu Sep 5 16:25:58 CEST 2013


vlc | branch: master | Steinar H. Gunderson <steinar+vlc at gunderson.no> | Fri Aug 16 16:42:37 2013 +0200| [9b554a69b02c4c3957f4306a91d787c9d7e86c8a] | committer: Jean-Baptiste Kempf

Increase the avformat mux buffer size to 10 MB.

The previous value, 32 kB, causes formats like WebM to overflow
and split the blocks, which has negative consequences for streaming.
We're unlikely to have a memory crunch in this area, so increase it
to something generous.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9b554a69b02c4c3957f4306a91d787c9d7e86c8a
---

 modules/demux/avformat/mux.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/avformat/mux.c b/modules/demux/avformat/mux.c
index 990489c..d1277ce 100644
--- a/modules/demux/avformat/mux.c
+++ b/modules/demux/avformat/mux.c
@@ -115,7 +115,7 @@ int OpenMux( vlc_object_t *p_this )
         strcpy( p_sys->oc->filename, p_mux->p_access->psz_path );
 
     /* Create I/O wrapper */
-    p_sys->io_buffer_size = 32768;  /* FIXME */
+    p_sys->io_buffer_size = 10 * 1024 * 1024;  /* FIXME */
     p_sys->io_buffer = malloc( p_sys->io_buffer_size );
 
     bool b_can_seek;



More information about the vlc-commits mailing list