Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/LAVFilters.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnderground78 <underground78@users.sourceforge.net>2014-05-11 00:04:05 +0400
committerHendrik Leppkes <h.leppkes@gmail.com>2014-05-11 00:18:02 +0400
commit85431f4cc700ddabba67c37fd3b65edd7565d8b6 (patch)
tree9c7bae76ee12151da4723f6ce2b7336dcd529d3e /demuxer
parenta0522eeb16d82b15a293450347efbaa5eb7b23dd (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.
Diffstat (limited to 'demuxer')
-rw-r--r--demuxer/LAVSplitter/StreamParser.cpp2
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);