comparison libmpdemux/open.c @ 6853:c52dc92ebf4b

There appears to be a trivial namespace error in determining the valid chapter range. It appears that "dvd_title" should be used with tt_srpt->title[], and "ttn-1" should be used with vts_file->vts_ptt_srpt->title[]. patch by Dave Sainty <dave@dtsp.co.nz>
author arpi
date Tue, 30 Jul 2002 19:19:16 +0000
parents 3bcd52b7b2ae
children 1a747aee653b
comparison
equal deleted inserted replaced
6852:80e2032480bd 6853:c52dc92ebf4b
368 d->cur_pgc = vts_file->vts_pgcit->pgci_srp[pgc_id-1].pgc; 368 d->cur_pgc = vts_file->vts_pgcit->pgci_srp[pgc_id-1].pgc;
369 d->cur_cell = d->cur_pgc->program_map[pgn-1] - 1; // start playback here 369 d->cur_cell = d->cur_pgc->program_map[pgn-1] - 1; // start playback here
370 d->packs_left=-1; // for Navi stuff 370 d->packs_left=-1; // for Navi stuff
371 d->angle_seek=0; 371 d->angle_seek=0;
372 /* XXX dvd_last_chapter is in the range 1..nr_of_ptts */ 372 /* XXX dvd_last_chapter is in the range 1..nr_of_ptts */
373 if ( dvd_last_chapter > 0 && dvd_last_chapter < tt_srpt->title[ttn-1].nr_of_ptts ) { 373 if ( dvd_last_chapter > 0 && dvd_last_chapter < tt_srpt->title[dvd_title].nr_of_ptts ) {
374 pgn=vts_file->vts_ptt_srpt->title[ttn-1].ptt[dvd_last_chapter].pgn; 374 pgn=vts_file->vts_ptt_srpt->title[ttn-1].ptt[dvd_last_chapter].pgn;
375 d->last_cell=d->cur_pgc->program_map[pgn-1] - 1; 375 d->last_cell=d->cur_pgc->program_map[pgn-1] - 1;
376 } 376 }
377 else 377 else
378 d->last_cell=d->cur_pgc->nr_of_cells; 378 d->last_cell=d->cur_pgc->nr_of_cells;