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>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6854 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-07-30 19:19:16 +00:00
parent 98861b8f69
commit 6b3417b657
1 changed files with 1 additions and 1 deletions

View File

@ -370,7 +370,7 @@ if(dvd_title){
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;
}