ffmpeg: sub2video: send a last blank frame before closing.
authorNicolas George <george@nsup.org>
Sun, 2 Mar 2014 19:59:32 +0000 (20:59 +0100)
committerNicolas George <george@nsup.org>
Sun, 23 Mar 2014 18:16:35 +0000 (19:16 +0100)
Fix trac ticket #3420.

ffmpeg.c

index 4b9209d..b8f6fe8 100644 (file)
--- 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);
 }