[vlc-commits] demux: avi: fix track selection without index

Francois Cartegnie git at videolan.org
Tue Feb 6 23:17:44 CET 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Feb  6 23:15:15 2018 +0100| [44800f3f7eaf1766b96bfded0c83676aaaef6f1f] | committer: Francois Cartegnie

demux: avi: fix track selection without index

fixes chunk pos index less 1 sample re-read
per demux run with uncompressed audio

introduced by d4c5f2dcd6a2df117b18422e2c50691e48be9707
might break with low fps video.

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

 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 ed8aa0fc99..f0dd7dca32 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -1125,7 +1125,7 @@ static int Demux_Seekable( demux_t *p_demux )
                 continue;
             }
 
-            if( toread[i].i_toread >= 0 )
+            if( toread[i].i_toread > 0 )
             {
                 b_done = false; /* not yet finished */
 



More information about the vlc-commits mailing list