[vlc-commits] demux: avi: fix track selection without index
Francois Cartegnie
git at videolan.org
Tue Feb 6 23:45:45 CET 2018
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Feb 6 23:15:15 2018 +0100| [9ed717d50a3427a6e7631d8733f060f9094495b8] | committer: Jean-Baptiste Kempf
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.
(cherry picked from commit 44800f3f7eaf1766b96bfded0c83676aaaef6f1f)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=9ed717d50a3427a6e7631d8733f060f9094495b8
---
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 2aff14b4be..1b037b0d96 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -1128,7 +1128,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