Wait a minute - the 0xa2 *is* larger than CDIO_CD_MAX_TRACKS. But I guess

we still should consider ptrackDescriptors[i_descriptors].
This commit is contained in:
rocky
2004-06-14 08:18:57 +00:00
parent 8406974f64
commit e4971ecac5

View File

@@ -1,5 +1,5 @@
/*
$Id: _cdio_osx.c,v 1.33 2004/06/13 21:43:41 rocky Exp $
$Id: _cdio_osx.c,v 1.34 2004/06/14 08:18:57 rocky Exp $
Copyright (C) 2003, 2004 Rocky Bernstein <rocky@panix.com>
from vcdimager code:
@@ -33,7 +33,7 @@
#include "config.h"
#endif
static const char _rcsid[] = "$Id: _cdio_osx.c,v 1.33 2004/06/13 21:43:41 rocky Exp $";
static const char _rcsid[] = "$Id: _cdio_osx.c,v 1.34 2004/06/14 08:18:57 rocky Exp $";
#include <cdio/sector.h>
#include <cdio/util.h>
@@ -147,8 +147,7 @@ getFirstTrack_osx( CDTOC *pTOC, int i_descriptors )
{
i_track = pTrackDescriptors[i].point;
if( i_track > CDIO_CD_MAX_TRACKS || i_track < CDIO_CD_MIN_TRACK_NO
|| i_track == 0xA2 )
if( i_track > CDIO_CD_MAX_TRACKS || i_track < CDIO_CD_MIN_TRACK_NO )
continue;
return ( i_track );
}