[vlc-commits] demux: avi: don't limit read by length on non fastseekable

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 20:54:01 2016 +0100| [6530fc82b54e8bf8a6121b5c239c20d8d6e62563] | committer: Francois Cartegnie

demux: avi: don't limit read by length on non fastseekable

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

 modules/demux/avi/avi.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index 37f85aa..1487c1a 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -1064,8 +1064,8 @@ static int Demux_Seekable( demux_t *p_demux )
         for( i = 0, b_done = true, i_pos = -1; i < p_sys->i_track; i++ )
         {
             if( !toread[i].b_ok ||
-                AVI_GetDPTS( p_sys->track[i],
-                             toread[i].i_toread ) <= -READ_LENGTH )
+                ( p_sys->b_fastseekable && p_sys->b_interleaved &&
+                  AVI_GetDPTS( p_sys->track[i], toread[i].i_toread ) <= -READ_LENGTH ) )
             {
                 continue;
             }



More information about the vlc-commits mailing list