From 521707d42e1ec3fab8a4a2e988554fea894ddb04 Mon Sep 17 00:00:00 2001 From: Nicolas George Date: Sun, 2 Mar 2014 20:59:32 +0100 Subject: [PATCH] ffmpeg: sub2video: send a last blank frame before closing. Fix trac ticket #3420. --- ffmpeg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ffmpeg.c b/ffmpeg.c index 4b9209dd92..b8f6fe8081 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -297,6 +297,8 @@ static void sub2video_flush(InputStream *ist) { int i; + if (ist->sub2video.end_pts < INT64_MAX) + sub2video_update(ist, NULL); for (i = 0; i < ist->nb_filters; i++) av_buffersrc_add_ref(ist->filters[i]->filter, NULL, 0); }