std::multimap<pts_t, off_t>::const_iterator
l = m_pts_to_offset.upper_bound(ts - 60 * 90000),
u = m_pts_to_offset.upper_bound(ts + 60 * 90000),
- nearest = m_access_points.end();
+ nearest = m_pts_to_offset.end();
while (l != u)
{
nearest = l;
++l;
}
- if (nearest == m_access_points.end())
+ if (nearest == m_pts_to_offset.end())
return 1;
ts -= getDelta(nearest->second);
off_t eMPEGStreamInformation::getAccessPoint(pts_t ts)
{
/* FIXME: more efficient implementation */
- pts_t delta = 0;
off_t last = 0;
for (std::map<off_t, pts_t>::const_iterator i(m_access_points.begin()); i != m_access_points.end(); ++i)
{
if (ptsvalid)
{
m_streaminfo.m_access_points[offset] = pts;
- eDebug("Sequence header at %llx, pts %llx", offset, pts);
+// eDebug("Sequence header at %llx, pts %llx", offset, pts);
} else
- eDebug("Sequence header but no valid PTS value.");
+ /*eDebug("Sequence header but no valid PTS value.")*/;
}
if (pkt[3] == 0x09) /* MPEG4 AVC unit access delimiter */
if (ptsvalid)
{
m_streaminfo.m_access_points[offset] = pts;
- eDebug("MPEG4 AVC UAD at %llx, pts %llx", offset, pts);
+// eDebug("MPEG4 AVC UAD at %llx, pts %llx", offset, pts);
} else
- eDebug("MPEG4 AVC UAD but no valid PTS value.");
+ /*eDebug("MPEG4 AVC UAD but no valid PTS value.")*/;
}
}
return 0;