[FFmpeg-devel] [PATCH] ffmpeg: sub2video: send a last blank frame before closing.

Nicolas George george at nsup.org
Sun Mar 2 21:04:33 CET 2014


Fix trac ticket #3420.

Signed-off-by: Nicolas George <george at nsup.org>
---
 ffmpeg.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ffmpeg.c b/ffmpeg.c
index b500229..13e7a8b 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);
 }
-- 
1.9.0



More information about the ffmpeg-devel mailing list