[vlc-devel] commit: Avformat, increase buf_size to 2048 + 213 for aea support ( Jean-Baptiste Kempf )

git version control git at videolan.org
Mon Sep 28 08:32:18 CEST 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Sep 28 08:09:13 2009 +0200| [d75f4cfa3718ee2084b602fd609789b0a94c399e] | committer: Jean-Baptiste Kempf 

Avformat, increase buf_size to 2048 + 213 for aea support

For some reason, the aea probe needs to be > 2048 + 212. I would thought that >= would be enough, but it doesn't seem so.
I hope it won't increase too much in the future.

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

 modules/demux/avformat/demux.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c
index 39ada49..1afdd2a 100644
--- a/modules/demux/avformat/demux.c
+++ b/modules/demux/avformat/demux.c
@@ -115,7 +115,7 @@ int OpenDemux( vlc_object_t *p_this )
 
     /* Init Probe data */
     pd.filename = p_demux->psz_path;
-    if( ( pd.buf_size = stream_Peek( p_demux->s, &pd.buf, 2048 ) ) <= 0 )
+    if( ( pd.buf_size = stream_Peek( p_demux->s, &pd.buf, 2048 + 213 ) ) <= 0 )
     {
         msg_Warn( p_demux, "cannot peek" );
         return VLC_EGENERIC;




More information about the vlc-devel mailing list