From: Felix Domke Date: Sun, 20 May 2007 14:23:40 +0000 (+0000) Subject: properly use 'long long' for aligned_start, aligned_end X-Git-Tag: 2.6.0~2239 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/a58a4312d042ed8727479a4343fbe905483558f9 properly use 'long long' for aligned_start, aligned_end --- diff --git a/lib/dvb/dvb.cpp b/lib/dvb/dvb.cpp index 934ce249..aab903ba 100644 --- a/lib/dvb/dvb.cpp +++ b/lib/dvb/dvb.cpp @@ -933,7 +933,7 @@ void eDVBChannel::getNextSourceSpan(off_t current_offset, size_t bytes_read, off max = align(m_skipmode_n, blocksize); } - eDebug("getNextSourceSpan, current offset is %08llx!", current_offset); + eDebug("getNextSourceSpan, current offset is %08llx, m_skipmode_m = %d!", current_offset, m_skipmode_m); current_offset += align(m_skipmode_m, blocksize); @@ -1010,14 +1010,14 @@ void eDVBChannel::getNextSourceSpan(off_t current_offset, size_t bytes_read, off } eDebug("ok, resolved skip (rel: %d, diff %lld), now at %08llx", relative, pts, offset); - current_offset = offset; + current_offset = align(offset, blocksize); /* in case tstools return non-aligned offset */ } for (std::list >::const_iterator i(m_source_span.begin()); i != m_source_span.end(); ++i) { - int aligned_start = align(i->first, blocksize); - int aligned_end = align(i->second, blocksize); - + long long aligned_start = align(i->first, blocksize); + long long aligned_end = align(i->second, blocksize); + if ((current_offset >= aligned_start) && (current_offset < aligned_end)) { start = current_offset;