ffmpeg: call sub2video_update for end packets.

Without that change, all subtitles will stay until the next one.
This commit is contained in:
Nicolas George 2012-09-09 15:53:21 +02:00
parent f1ca40ee00
commit 1b9a251438
1 changed files with 2 additions and 2 deletions

View File

@ -1683,13 +1683,13 @@ static int transcode_subtitles(InputStream *ist, AVPacket *pkt, int *got_output)
FFSWAP(AVSubtitle, subtitle, ist->prev_sub.subtitle);
}
sub2video_update(ist, &subtitle, pkt->pts);
if (!*got_output || !subtitle.num_rects)
return ret;
rate_emu_sleep(ist);
sub2video_update(ist, &subtitle, pkt->pts);
for (i = 0; i < nb_output_streams; i++) {
OutputStream *ost = output_streams[i];