diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-09-12 22:51:09 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-09-13 01:22:00 +0200 |
| commit | fc1441eeaa3c0805c37809685ea7a3f5ca173666 (patch) | |
| tree | d87ebe9f53a999ac882b0274a1d67698e7c864c2 | |
| parent | 60450bd93af0b331d7b98c88aa199366305f0721 (diff) | |
Add another believed-correct subtitle timing fix.v2.15.161
| -rw-r--r-- | src/lib/ffmpeg.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ffmpeg.cc b/src/lib/ffmpeg.cc index 31aa18293..503f8e51c 100644 --- a/src/lib/ffmpeg.cc +++ b/src/lib/ffmpeg.cc @@ -288,7 +288,7 @@ FFmpeg::subtitle_period (AVPacket const* packet, AVStream const* stream, AVSubti { auto const packet_time = ContentTime::from_seconds (packet->pts * av_q2d(stream->time_base)); - if (sub.end_display_time == static_cast<uint32_t> (-1)) { + if (sub.end_display_time == 0 || sub.end_display_time == static_cast<uint32_t>(-1)) { /* End time is not known */ return FFmpegSubtitlePeriod (packet_time + ContentTime::from_seconds (sub.start_display_time / 1e3)); } |
