X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fffmpeg_decoder.cc;fp=src%2Flib%2Fffmpeg_decoder.cc;h=6130d8e5fb5c59be98c6aec9c6ed7b78e23eeac1;hp=7f7a078638b540ba81bbbe38c5ad260970232fa0;hb=94618a724124cbf5fe9f0b47a3fdce601fcd5581;hpb=027a6534067edc6fe9390d9ecc750e9982d5437c diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc index 7f7a07863..6130d8e5f 100644 --- a/src/lib/ffmpeg_decoder.cc +++ b/src/lib/ffmpeg_decoder.cc @@ -668,11 +668,11 @@ FFmpegDecoder::decode_and_process_subtitle_packet (AVPacket* packet) */ ContentTime from; from = sub_period.from + _pts_offset; + _have_current_subtitle = true; if (sub_period.to) { _current_subtitle_to = *sub_period.to + _pts_offset; } else { _current_subtitle_to = optional(); - _have_current_subtitle = true; } ContentBitmapText bitmap_text(from);