From 4e9a42565b646e1151474b00281d695f15d9c9ca Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Thu, 24 Apr 2025 16:12:43 +0000 Subject: [PATCH] Fix subtitles flat out not working --- src/dvbsubtitles.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/dvbsubtitles.cc b/src/dvbsubtitles.cc index ba4adf2..dc06d94 100644 --- a/src/dvbsubtitles.cc +++ b/src/dvbsubtitles.cc @@ -527,7 +527,14 @@ void DVBSubtitles::put(const PESPacket& packet) input_mutex.lock(); if (running) { - if (packet.getPTS() != PESPacket::PTS_INVALID) + if ((packet.getPTS() == 0x1FFFFFFFF) && (packet.getSize() == 14)) + { + // Filter this packet. What is it? Subs seem to work fine without it and it's too short to be useful + // The rewritten timing algorithm below doesn't handle this packet like it did before + // and it jams up the work list + } + + else if (packet.getPTS() != PESPacket::PTS_INVALID) { worklist.push_back(packet); signalRecalcWLTO = true; -- 2.39.5