Commit 521707d4 authored by Nicolas George's avatar Nicolas George

ffmpeg: sub2video: send a last blank frame before closing.

Fix trac ticket #3420.
parent 27cff4f6
...@@ -297,6 +297,8 @@ static void sub2video_flush(InputStream *ist) ...@@ -297,6 +297,8 @@ static void sub2video_flush(InputStream *ist)
{ {
int i; int i;
if (ist->sub2video.end_pts < INT64_MAX)
sub2video_update(ist, NULL);
for (i = 0; i < ist->nb_filters; i++) for (i = 0; i < ist->nb_filters; i++)
av_buffersrc_add_ref(ist->filters[i]->filter, NULL, 0); av_buffersrc_add_ref(ist->filters[i]->filter, NULL, 0);
} }
......
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