projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60450bd
)
Add another believed-correct subtitle timing fix.
v2.15.161
author
Carl Hetherington
<cth@carlh.net>
Sun, 12 Sep 2021 20:51:09 +0000
(22:51 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Sun, 12 Sep 2021 23:22:00 +0000
(
01:22
+0200)
src/lib/ffmpeg.cc
patch
|
blob
|
history
diff --git
a/src/lib/ffmpeg.cc
b/src/lib/ffmpeg.cc
index 31aa182937d24512d3f48c543bf7d4329f4dcc20..503f8e51cf13b146d25d81d443688428a87e5f97 100644
(file)
--- 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));
}