]> git.sesse.net Git - vlc/commitdiff
Avformat, increase buf_size to 2048 + 213 for aea support
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 28 Sep 2009 06:09:13 +0000 (08:09 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 28 Sep 2009 06:09:13 +0000 (08:09 +0200)
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.

modules/demux/avformat/demux.c

index 39ada49629c03c3445c4fb6c8f6f2fa9eebfbc87..1afdd2aaec65c276ec59b937af8be26a67eb4e98 100644 (file)
@@ -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;