libwebm: changed type from size_t to long
Change-Id: I5a684628119877a2f89116b760a1c7e41716748d
This commit is contained in:
parent
85beb00fe3
commit
227d62aadf
@ -2475,7 +2475,7 @@ void Cues::Init() const
|
|||||||
const long long stop = m_start + m_size;
|
const long long stop = m_start + m_size;
|
||||||
long long pos = m_start;
|
long long pos = m_start;
|
||||||
|
|
||||||
size_t cue_points_size = 0;
|
long cue_points_size = 0;
|
||||||
|
|
||||||
while (pos < stop)
|
while (pos < stop)
|
||||||
{
|
{
|
||||||
@ -2506,17 +2506,17 @@ void Cues::Init() const
|
|||||||
|
|
||||||
|
|
||||||
void Cues::PreloadCuePoint(
|
void Cues::PreloadCuePoint(
|
||||||
size_t& cue_points_size,
|
long& cue_points_size,
|
||||||
long long pos) const
|
long long pos) const
|
||||||
{
|
{
|
||||||
assert(m_count == 0);
|
assert(m_count == 0);
|
||||||
|
|
||||||
if (m_preload_count >= cue_points_size)
|
if (m_preload_count >= cue_points_size)
|
||||||
{
|
{
|
||||||
size_t n;
|
long n;
|
||||||
|
|
||||||
if (cue_points_size > 0)
|
if (cue_points_size > 0)
|
||||||
n = static_cast<size_t>(2 * cue_points_size);
|
n = 2 * cue_points_size;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
const SegmentInfo* const pInfo = m_pSegment->GetInfo();
|
const SegmentInfo* const pInfo = m_pSegment->GetInfo();
|
||||||
@ -2532,7 +2532,7 @@ void Cues::PreloadCuePoint(
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
const long long sec = (ns + 999999999LL) / 1000000000LL;
|
const long long sec = (ns + 999999999LL) / 1000000000LL;
|
||||||
n = static_cast<size_t>(sec);
|
n = static_cast<long>(sec);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -525,7 +525,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
void Init() const;
|
void Init() const;
|
||||||
void PreloadCuePoint(size_t&, long long) const;
|
void PreloadCuePoint(long&, long long) const;
|
||||||
|
|
||||||
mutable CuePoint** m_cue_points;
|
mutable CuePoint** m_cue_points;
|
||||||
mutable long m_count;
|
mutable long m_count;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user