[vlc-commits] demux: avi: raise chunk size to 2*CLOCK_FREQ for unseekable

Francois Cartegnie git at videolan.org
Mon Jan 11 21:17:28 CET 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Jan 11 18:46:14 2016 +0100| [26ac8a6a65540017f3f1d71aa0026d675024ab0a] | committer: Francois Cartegnie

demux: avi: raise chunk size to 2*CLOCK_FREQ for unseekable

refs toon.avi

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

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

diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index bae8a3c..8c0c46d 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -1404,7 +1404,7 @@ static int Demux_UnSeekable( demux_t *p_demux )
         {
             /* check for time */
             if( llabs( AVI_GetPTS( p_stream ) -
-                        AVI_GetPTS( p_stream_master ) )< 600*1000 )
+                        AVI_GetPTS( p_stream_master ) )< 2 * CLOCK_FREQ )
             {
                 /* load it and send to decoder */
                 block_t *p_frame = ReadFrame( p_demux, p_stream, 8, avi_pk.i_size + 8 ) ;



More information about the vlc-commits mailing list