[vlc-commits] vdr: check array index before using it.
Rémi Duraffort
git at videolan.org
Fri Nov 11 14:31:36 CET 2011
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Tue Oct 11 16:20:54 2011 +0200| [d07facd4aff48f097537154327233b6d5ce23bbe] | committer: Rémi Duraffort
vdr: check array index before using it.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d07facd4aff48f097537154327233b6d5ce23bbe
---
modules/access/vdr.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/access/vdr.c b/modules/access/vdr.c
index cd5427b..0a07330 100644
--- a/modules/access/vdr.c
+++ b/modules/access/vdr.c
@@ -407,8 +407,8 @@ static int Seek( access_t *p_access, uint64_t i_pos )
/* find correct file */
unsigned i_file = 0;
- while( i_pos >= FILE_SIZE( i_file ) &&
- i_file < FILE_COUNT - 1 )
+ while( i_file < FILE_COUNT - 1 &&
+ i_pos >= FILE_SIZE( i_file ) )
{
i_pos -= FILE_SIZE( i_file );
i_file++;
More information about the vlc-commits
mailing list