aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorNicolas George <george@nsup.org>2014-03-02 20:59:32 +0100
committerNicolas George <george@nsup.org>2014-03-23 19:16:35 +0100
commit521707d42e1ec3fab8a4a2e988554fea894ddb04 (patch)
treec4d469b39274145913e8b227808b465331f00628 /ffmpeg.c
parent27cff4f6f8e028b30a9932e059545676829492d3 (diff)
downloadffmpeg-521707d42e1ec3fab8a4a2e988554fea894ddb04.tar.gz
ffmpeg: sub2video: send a last blank frame before closing.
Fix trac ticket #3420.
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 2 insertions, 0 deletions
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);
}