From e06941199da90359f41ce80c276752bc0f172d7e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 28 Apr 2022 14:00:07 +0200 Subject: Handle multiple bitmap subtitles at the same time correctly (#2239). Previously if there were two images at the same time we would start them both, then the stop time would be set in the second one but not the first. This meant that the first one would hang around forever. --- src/lib/ffmpeg_decoder.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib/ffmpeg_decoder.h') diff --git a/src/lib/ffmpeg_decoder.h b/src/lib/ffmpeg_decoder.h index 663a3c687..ce2476fb0 100644 --- a/src/lib/ffmpeg_decoder.h +++ b/src/lib/ffmpeg_decoder.h @@ -24,6 +24,7 @@ */ +#include "bitmap_text.h" #include "decoder.h" #include "ffmpeg.h" #include "util.h" @@ -72,7 +73,7 @@ private: void decode_and_process_audio_packet (AVPacket* packet); void decode_and_process_subtitle_packet (AVPacket* packet); - void process_bitmap_subtitle (AVSubtitleRect const * rect, dcpomatic::ContentTime from); + BitmapText process_bitmap_subtitle (AVSubtitleRect const * rect); void process_ass_subtitle (std::string ass, dcpomatic::ContentTime from); void maybe_add_subtitle (); -- cgit v1.2.3