diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-11-20 21:05:30 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-11-20 21:05:30 +0000 |
| commit | 31724651675fc01a33ffa0818d4397858493dd56 (patch) | |
| tree | a2e8f0bc9ae485c971d4319880b2e2bfb39a5569 /src/lib | |
| parent | fa155dece604627b76c45e18501dfecba3e6ab88 (diff) | |
Fix loss of image subtitles with more than 1 rectangle.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/ffmpeg_examiner.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ffmpeg_examiner.cc b/src/lib/ffmpeg_examiner.cc index 847c141da..4c2040f52 100644 --- 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); } - } 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 ())); |
