]> git.sesse.net Git - vlc/commitdiff
*Corrected � long time bug (around 0.2.81 I think), that created a
authorStéphane Borel <stef@videolan.org>
Wed, 7 Nov 2001 03:37:27 +0000 (03:37 +0000)
committerStéphane Borel <stef@videolan.org>
Wed, 7 Nov 2001 03:37:27 +0000 (03:37 +0000)
corruption in ifo data. This was the reason why some DVDs that worked with
0.2.80 no longer worked with newer version of vlc. They should work again
now.

This is certainly one of the last updates of the current DVD plugin until
we move to libdvdread that will give us navigation ES.

plugins/dvd/dvd_ifo.c

index 5effd636eab564734f103c31d12a9de025a40be1..56491d8d91dbd546090a9e505207e869d9c24cf1 100644 (file)
@@ -2,7 +2,7 @@
  * dvd_ifo.c: Functions for ifo parsing
  *****************************************************************************
  * Copyright (C) 1999-2001 VideoLAN
- * $Id: dvd_ifo.c,v 1.38 2001/10/13 15:34:21 stef Exp $
+ * $Id: dvd_ifo.c,v 1.39 2001/11/07 03:37:27 stef Exp $
  *
  * Authors: Stéphane Borel <stef@via.ecp.fr>
  *          German Tischler <tanis@gaspode.franken.de>
@@ -2145,7 +2145,7 @@ static void DumpBytes( ifo_t* p_ifo, u8* p_buf, u8** pp_tmp, int i_nb )
     {
         /* If we went too far, load the next buffer */
         *pp_tmp = FillBuffer( p_ifo, p_buf, p_ifo->i_pos + 1 )
-                   + (int)( (*pp_tmp) - (p_buf - DVD_LB_SIZE) );
+                   + (int)( (*pp_tmp) - (p_buf + DVD_LB_SIZE) );
     }
 
     return;