libwebm: changed idx from size_t to long

Change-Id: I7ea9637ab3c55d7535fe9f2fe11fe88f4d47e474
This commit is contained in:
matthewjheaney 2011-03-02 18:21:21 -05:00
parent eb4bd69098
commit 85beb00fe3
2 changed files with 9 additions and 9 deletions

View File

@ -2429,7 +2429,7 @@ Cues::Cues(
Cues::~Cues()
{
const size_t n = m_count + m_preload_count;
const long n = m_count + m_preload_count;
CuePoint** p = m_cue_points;
CuePoint** const q = p + n;
@ -2842,7 +2842,7 @@ const CuePoint* Cues::GetLast() const
if (m_cue_points == NULL)
return NULL;
if (m_count == 0)
if (m_count <= 0)
return NULL;
#if 0
@ -2864,7 +2864,7 @@ const CuePoint* Cues::GetLast() const
pCP->Load(m_pSegment->m_pReader);
assert(pCP->GetTimeCode() >= 0);
#else
const size_t index = m_count - 1;
const long index = m_count - 1;
CuePoint* const* const pp = m_cue_points;
assert(pp);
@ -2907,7 +2907,7 @@ const CuePoint* Cues::GetNext(const CuePoint* pCurr) const
pNext->Load(m_pSegment->m_pReader);
#else
size_t index = pCurr->m_index;
long index = pCurr->m_index;
assert(index < m_count);
CuePoint* const* const pp = m_cue_points;
@ -3061,7 +3061,7 @@ const Cluster* Segment::FindOrPreloadCluster(long long requested_pos)
}
CuePoint::CuePoint(size_t idx, long long pos) :
CuePoint::CuePoint(long idx, long long pos) :
m_element_start(0),
m_element_size(0),
m_index(idx),

View File

@ -436,7 +436,7 @@ class CuePoint
{
friend class Cues;
CuePoint(size_t, long long);
CuePoint(long, long long);
~CuePoint();
CuePoint(const CuePoint&);
@ -466,7 +466,7 @@ public:
const TrackPosition* Find(const Track*) const;
private:
const size_t m_index;
const long m_index;
long long m_timecode;
TrackPosition* m_track_positions;
size_t m_track_positions_count;
@ -528,8 +528,8 @@ private:
void PreloadCuePoint(size_t&, long long) const;
mutable CuePoint** m_cue_points;
mutable size_t m_count;
mutable size_t m_preload_count;
mutable long m_count;
mutable long m_preload_count;
mutable long long m_pos;
};