ffmpeg: sub2video: send a last blank frame before closing.
Fix trac ticket #3420.
This commit is contained in:
parent
27cff4f6f8
commit
521707d42e
1 changed files with 2 additions and 0 deletions
2
ffmpeg.c
2
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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue