Fix loss of image subtitles with more than 1 rectangle.
authorCarl Hetherington <cth@carlh.net>
Sun, 20 Nov 2016 21:05:30 +0000 (21:05 +0000)
committerCarl Hetherington <cth@carlh.net>
Sun, 20 Nov 2016 21:05:30 +0000 (21:05 +0000)
src/lib/ffmpeg_examiner.cc

index 847c141da4a142e49b694429eea41829b095224f..4c2040f52827801d155ee9a2b39f38b5db0ba841 100644 (file)
@@ -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 ()));