[vlc-commits] demux: avi: fix incremental chunk reads (fix #18693)
Francois Cartegnie
git at videolan.org
Wed Aug 23 15:19:08 CEST 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Aug 23 15:14:43 2017 +0200| [6968dd2695424d81c6e25f403d386d55ae3cb682] | committer: Francois Cartegnie
demux: avi: fix incremental chunk reads (fix #18693)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6968dd2695424d81c6e25f403d386d55ae3cb682
---
modules/demux/avi/avi.c | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index e71a046838..fbf62fe1f2 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -1104,13 +1104,14 @@ static int Demux_Seekable( demux_t *p_demux )
if( toread[i].i_toread >= 0 )
{
b_done = false; /* not yet finished */
- }
- if( toread[i].i_posf > 0 )
- {
- if( i_pos == -1 || i_pos > toread[i].i_posf )
+
+ if( toread[i].i_posf > 0 )
{
- i_track = i;
- i_pos = toread[i].i_posf;
+ if( i_pos == -1 || i_pos > toread[i].i_posf )
+ {
+ i_track = i;
+ i_pos = toread[i].i_posf;
+ }
}
}
}
More information about the vlc-commits
mailing list