-/* include/defs.h.in. Generated automatically from configure.in by autoheader. */
+/* include/defs.h.in. Generated automatically from configure.in by autoheader 2.13. */
/* Define if using alloca.c. */
#undef C_ALLOCA
* -dvd_udf to find files
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
- * $Id: dvd_access.c,v 1.16 2002/05/20 22:45:03 sam Exp $
+ * $Id: dvd_access.c,v 1.17 2002/05/21 00:34:41 sam Exp $
*
* Author: Stéphane Borel <stef@via.ecp.fr>
*
/* Area definition */
p_input->stream.p_selected_area->i_start = LB2OFF( i_first );
p_input->stream.p_selected_area->i_size =
- LB2OFF( i_last - p_dvd->i_vts_lb + 1 );
+ LB2OFF( i_last + 1 - p_dvd->i_vts_lb );
/* Destroy obsolete ES by reinitializing programs */
DVDFlushStream( p_input );
p_input->stream.pp_programs[p_dvd->i_angle-1] );
intf_WarnMsg( 3, "dvd info: title first %i, last %i, size %i",
- i_first, i_last, i_last - p_dvd->i_vts_lb + 1 );
+ i_first, i_last, i_last + 1 - p_dvd->i_vts_lb );
IfoPrintTitle( p_dvd );
/* No PSM to read in DVD mode, we already have all information */
/* dvd_seek.c: functions to navigate through DVD.
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
- * $Id: dvd_seek.c,v 1.7 2002/05/20 22:45:03 sam Exp $
+ * $Id: dvd_seek.c,v 1.8 2002/05/21 00:34:41 sam Exp $
*
* Author: Stéphane Borel <stef@via.ecp.fr>
*
int LbMaxOnce( thread_dvd_data_t * p_dvd )
{
- int i_block_once = p_dvd->i_last_lb - p_dvd->i_vts_lb + 1;
+ int i_block_once = p_dvd->i_last_lb + 1 - p_dvd->i_vts_lb;
/* Get the position of the next cell if we're at cell end */
if( i_block_once <= 0 )
return 0;
}
- i_block_once = p_dvd->i_last_lb - p_dvd->i_vts_lb + 1;
+ i_block_once = p_dvd->i_last_lb + 1 - p_dvd->i_vts_lb;
}
return i_block_once;