diff options
author | Underground78 <underground78@users.sourceforge.net> | 2014-05-11 00:04:05 +0400 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2014-05-11 00:18:02 +0400 |
commit | 85431f4cc700ddabba67c37fd3b65edd7565d8b6 (patch) | |
tree | 9c7bae76ee12151da4723f6ce2b7336dcd529d3e | |
parent | a0522eeb16d82b15a293450347efbaa5eb7b23dd (diff) |
LAV Splitter: Fix the filtering of non-forced PGS subtitles.
PGS segments with just a header were mistakenly ignored. This included "end of display" segments so it could result in no subtitle being displayed at all.
-rw-r--r-- | demuxer/LAVSplitter/StreamParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demuxer/LAVSplitter/StreamParser.cpp b/demuxer/LAVSplitter/StreamParser.cpp index dc774379..82a5741a 100644 --- a/demuxer/LAVSplitter/StreamParser.cpp +++ b/demuxer/LAVSplitter/StreamParser.cpp @@ -288,7 +288,7 @@ HRESULT CStreamParser::ParsePGS(Packet *pPacket) m_pgsBuffer.SetSize(0); - while((buf + 3) < buf_end) { + while((buf + 3) <= buf_end) { const uint8_t *segment_start = buf; const size_t segment_buf_len = buf_end - buf; segment_type = AV_RB8(buf); |