X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/01dfc57fc043ec0d404068d5abf325c2a59ff027..a9f7393e1d00eb89b8282aae0ddc4f6da33d9ca1:/lib/dvb/pvrparse.cpp diff --git a/lib/dvb/pvrparse.cpp b/lib/dvb/pvrparse.cpp index d6978301..1b6cb467 100644 --- a/lib/dvb/pvrparse.cpp +++ b/lib/dvb/pvrparse.cpp @@ -146,7 +146,7 @@ int eMPEGStreamInformation::fixupPTS(const off_t &offset, pts_t &ts) std::multimap::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) { @@ -154,7 +154,7 @@ int eMPEGStreamInformation::fixupPTS(const off_t &offset, pts_t &ts) nearest = l; ++l; } - if (nearest == m_access_points.end()) + if (nearest == m_pts_to_offset.end()) return 1; ts -= getDelta(nearest->second); @@ -219,7 +219,6 @@ pts_t eMPEGStreamInformation::getInterpolated(off_t offset) off_t eMPEGStreamInformation::getAccessPoint(pts_t ts) { /* FIXME: more efficient implementation */ - pts_t delta = 0; off_t last = 0; for (std::map::const_iterator i(m_access_points.begin()); i != m_access_points.end(); ++i) { @@ -348,9 +347,9 @@ int eMPEGStreamParserTS::processPacket(const unsigned char *pkt, off_t offset) 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 */ @@ -358,9 +357,9 @@ int eMPEGStreamParserTS::processPacket(const unsigned char *pkt, off_t offset) 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;