Commit 1b9a2514 authored by Nicolas George's avatar Nicolas George

ffmpeg: call sub2video_update for end packets.

Without that change, all subtitles will stay until the next one.
parent f1ca40ee
...@@ -1683,13 +1683,13 @@ static int transcode_subtitles(InputStream *ist, AVPacket *pkt, int *got_output) ...@@ -1683,13 +1683,13 @@ static int transcode_subtitles(InputStream *ist, AVPacket *pkt, int *got_output)
FFSWAP(AVSubtitle, subtitle, ist->prev_sub.subtitle); FFSWAP(AVSubtitle, subtitle, ist->prev_sub.subtitle);
} }
sub2video_update(ist, &subtitle, pkt->pts);
if (!*got_output || !subtitle.num_rects) if (!*got_output || !subtitle.num_rects)
return ret; return ret;
rate_emu_sleep(ist); rate_emu_sleep(ist);
sub2video_update(ist, &subtitle, pkt->pts);
for (i = 0; i < nb_output_streams; i++) { for (i = 0; i < nb_output_streams; i++) {
OutputStream *ost = output_streams[i]; OutputStream *ost = output_streams[i];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment