diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2013-09-23 22:07:10 +0400 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2013-09-23 22:07:10 +0400 |
commit | ab7bee354a640d5a46cee84038015a451a48c7b9 (patch) | |
tree | b04130084754754da383a80aae95ff3b6c8b217f /demuxer | |
parent | ff3b4dff2791ba19f6ad46bb034e48ab93d3a4a8 (diff) |
Seek after the 4-byte extra TS headers on BD.
This avoids an extra resync pass and improves seeking performance.
Diffstat (limited to 'demuxer')
-rw-r--r-- | demuxer/Demuxers/BDDemuxer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demuxer/Demuxers/BDDemuxer.cpp b/demuxer/Demuxers/BDDemuxer.cpp index b990d4e9..cf29ecf3 100644 --- a/demuxer/Demuxers/BDDemuxer.cpp +++ b/demuxer/Demuxers/BDDemuxer.cpp @@ -433,7 +433,7 @@ STDMETHODIMP CBDDemuxer::Seek(REFERENCE_TIME rTime) int64_t target = bd_find_seek_point(m_pBD, ConvertDSTimeTo90Khz(rTime)); DbgLog((LOG_TRACE, 1, "Seek Request: %I64u (time); %I64u (byte), %I64u (prev byte)", rTime, target, prev)); - return m_lavfDemuxer->SeekByte(target, AVSEEK_FLAG_BACKWARD); + return m_lavfDemuxer->SeekByte(target + 4, AVSEEK_FLAG_BACKWARD); } const char *CBDDemuxer::GetContainerFormat() const |