mirror of https://git.ffmpeg.org/ffmpeg.git
ffmpeg: sub2video: send a last blank frame before closing.
Fix trac ticket #3420.
This commit is contained in:
parent
27cff4f6f8
commit
521707d42e
2
ffmpeg.c
2
ffmpeg.c
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue