[MPlayer-cvslog] r19448 - trunk/stream/stream_dvd.c
nicodvb
subversion at mplayerhq.hu
Sat Aug 19 12:45:17 CEST 2006
Author: nicodvb
Date: Sat Aug 19 12:45:17 2006
New Revision: 19448
Modified:
trunk/stream/stream_dvd.c
Log:
sanity check: since chapter is 0-based it can't exceed nr_of_ptts-1
Modified: trunk/stream/stream_dvd.c
==============================================================================
--- trunk/stream/stream_dvd.c (original)
+++ trunk/stream/stream_dvd.c Sat Aug 19 12:45:17 2006
@@ -489,7 +489,7 @@
if(!vts_file || !tt_srpt)
return 0;
- if(chapter < 0 || chapter > vts_file->vts_ptt_srpt->title[title_no].nr_of_ptts) //no such chapter
+ if(chapter < 0 || chapter > vts_file->vts_ptt_srpt->title[title_no].nr_of_ptts-1) //no such chapter
return 0;
ptt = vts_file->vts_ptt_srpt->title[title_no].ptt[chapter];
More information about the MPlayer-cvslog
mailing list