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:
@@ -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>
|
Copyright (C) 2003, 2004 Rocky Bernstein <rocky@panix.com>
|
||||||
from vcdimager code:
|
from vcdimager code:
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#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/sector.h>
|
||||||
#include <cdio/util.h>
|
#include <cdio/util.h>
|
||||||
@@ -147,8 +147,7 @@ getFirstTrack_osx( CDTOC *pTOC, int i_descriptors )
|
|||||||
{
|
{
|
||||||
i_track = pTrackDescriptors[i].point;
|
i_track = pTrackDescriptors[i].point;
|
||||||
|
|
||||||
if( i_track > CDIO_CD_MAX_TRACKS || i_track < CDIO_CD_MIN_TRACK_NO
|
if( i_track > CDIO_CD_MAX_TRACKS || i_track < CDIO_CD_MIN_TRACK_NO )
|
||||||
|| i_track == 0xA2 )
|
|
||||||
continue;
|
continue;
|
||||||
return ( i_track );
|
return ( i_track );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user