projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fa155de
)
Fix loss of image subtitles with more than 1 rectangle.
author
Carl Hetherington
<cth@carlh.net>
Sun, 20 Nov 2016 21:05:30 +0000
(21:05 +0000)
committer
Carl Hetherington
<cth@carlh.net>
Sun, 20 Nov 2016 21:05:30 +0000
(21:05 +0000)
src/lib/ffmpeg_examiner.cc
patch
|
blob
|
history
diff --git
a/src/lib/ffmpeg_examiner.cc
b/src/lib/ffmpeg_examiner.cc
index 847c141da4a142e49b694429eea41829b095224f..4c2040f52827801d155ee9a2b39f38b5db0ba841 100644
(file)
--- a/
src/lib/ffmpeg_examiner.cc
+++ b/
src/lib/ffmpeg_examiner.cc
@@
-252,7
+252,7
@@
FFmpegExaminer::subtitle_packet (AVCodecContext* context, shared_ptr<FFmpegSubti
/* This is just another subtitle, so we start again */
_last_subtitle_start[stream] = SubtitleStart (id, starts_image, period.from);
}
/* This is just another subtitle, so we start again */
_last_subtitle_start[stream] = SubtitleStart (id, starts_image, period.from);
}
- } else if (sub.num_rects
=
= 1) {
+ } else if (sub.num_rects
>
= 1) {
if (period.to) {
if (starts_image) {
stream->add_image_subtitle (id, ContentTimePeriod (period.from, period.to.get ()));
if (period.to) {
if (starts_image) {
stream->add_image_subtitle (id, ContentTimePeriod (period.from, period.to.get ()));