changeset 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 80e2032480bd
children ded48a755830
files libmpdemux/open.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/open.c	Tue Jul 30 19:06:51 2002 +0000
+++ b/libmpdemux/open.c	Tue Jul 30 19:19:16 2002 +0000
@@ -370,7 +370,7 @@
     d->packs_left=-1;      // for Navi stuff
     d->angle_seek=0;
     /* XXX dvd_last_chapter is in the range 1..nr_of_ptts */
-    if ( dvd_last_chapter > 0 && dvd_last_chapter < tt_srpt->title[ttn-1].nr_of_ptts ) {
+    if ( dvd_last_chapter > 0 && dvd_last_chapter < tt_srpt->title[dvd_title].nr_of_ptts ) {
 	pgn=vts_file->vts_ptt_srpt->title[ttn-1].ptt[dvd_last_chapter].pgn;
 	d->last_cell=d->cur_pgc->program_map[pgn-1] - 1;
     }