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

Fix trac ticket #3420.
This commit is contained in:
Nicolas George 2014-03-02 20:59:32 +01:00
parent 27cff4f6f8
commit 521707d42e

View File

@ -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);
}