Fix hanging/overlapping dvb subtitles (#2792).
authorCarl Hetherington <cth@carlh.net>
Sun, 31 Mar 2024 23:04:41 +0000 (01:04 +0200)
committerCarl Hetherington <cth@carlh.net>
Sun, 31 Mar 2024 23:04:43 +0000 (01:04 +0200)
commit94618a724124cbf5fe9f0b47a3fdce601fcd5581
tree532a524e33e4ba76fda9d911c2ad6bd34ef444ed
parent027a6534067edc6fe9390d9ecc750e9982d5437c
Fix hanging/overlapping dvb subtitles (#2792).

This reverts a change made in
8ca6fd6d97e6d42492afddb655fa85130946853c
"Fix doubled subtitles if subtitle stop times are specified."

That change breaks the case where a subtitle _does_ have a stop time,
but it's wrong (30s from the start time) and we want the next subtitle
to clear the previous one.

I can't now see how reverting this could cause doubled subtitles,
so maybe that problem wlil come back.  At least now there's a test
for #2792.
src/lib/ffmpeg_decoder.cc
test/subtitle_timing_test.cc