[Mplayer-cvslog] CVS: main/libmpdemux open.c,1.50,1.51
Arpi of Ize
arpi at mplayerhq.hu
Tue Jul 30 21:19:19 CEST 2002
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv22729
Modified Files:
open.c
Log Message:
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 at dtsp.co.nz>
Index: open.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/open.c,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -r1.50 -r1.51
--- open.c 23 Jul 2002 23:36:44 -0000 1.50
+++ open.c 30 Jul 2002 19:19:16 -0000 1.51
@@ -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;
}
More information about the MPlayer-cvslog
mailing list