[FFmpeg-cvslog] ffmpeg: sub2video: send a last blank frame before closing.
Nicolas George
git at videolan.org
Mon Mar 24 00:14:03 CET 2014
ffmpeg | branch: master | Nicolas George <george at nsup.org> | Sun Mar 2 20:59:32 2014 +0100| [521707d42e1ec3fab8a4a2e988554fea894ddb04] | committer: Nicolas George
ffmpeg: sub2video: send a last blank frame before closing.
Fix trac ticket #3420.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=521707d42e1ec3fab8a4a2e988554fea894ddb04
---
ffmpeg.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ffmpeg.c b/ffmpeg.c
index 4b9209d..b8f6fe8 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);
}
More information about the ffmpeg-cvslog
mailing list