From c01112adc6eb6ddd791164d35b698c6679bb1026 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Borel?= Date: Sun, 15 Apr 2001 15:32:48 +0000 Subject: [PATCH] -Maybe fixed the "cell not found" bug. I can't test it because I don't have a dvd drive here, but it should work now. --- plugins/dvd/dvd_ifo.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/plugins/dvd/dvd_ifo.c b/plugins/dvd/dvd_ifo.c index b2a19334a9..89ae97d7cb 100644 --- a/plugins/dvd/dvd_ifo.c +++ b/plugins/dvd/dvd_ifo.c @@ -2,7 +2,7 @@ * dvd_ifo.c: Functions for ifo parsing ***************************************************************************** * Copyright (C) 1999-2001 VideoLAN - * $Id: dvd_ifo.c,v 1.20 2001/04/13 05:36:12 stef Exp $ + * $Id: dvd_ifo.c,v 1.21 2001/04/15 15:32:48 stef Exp $ * * Author: Stéphane Borel * @@ -1312,7 +1312,7 @@ static int ReadCellInf( ifo_t * p_ifo, cell_inf_t * p_cell_inf, off_t i_pos ) off_t i_start; int i; - p_current = FillBuffer( p_ifo, pi_buffer, i_pos ); + p_current = FillBuffer( p_ifo, pi_buffer, i_pos ); i_start = p_ifo->i_pos; //fprintf( stderr, "CELL ADD\n" ); @@ -1320,9 +1320,7 @@ static int ReadCellInf( ifo_t * p_ifo, cell_inf_t * p_cell_inf, off_t i_pos ) DumpBits( p_ifo, pi_buffer, &p_current, 2 ); p_cell_inf->i_end_byte = ReadDouble( p_ifo, pi_buffer, &p_current ); - p_cell_inf->i_cell_nb = - ( i_start + p_cell_inf->i_end_byte + 1 - p_ifo->i_pos ) - / sizeof(cell_map_t); + p_cell_inf->i_cell_nb = (p_cell_inf->i_end_byte - 8) / sizeof(cell_map_t); //fprintf( stderr, "Cell inf: vob %d end %d cell %d\n", p_cell_inf->i_vob_nb, p_cell_inf->i_end_byte, p_cell_inf->i_cell_nb ); -- 2.39.2