[FFmpeg-devel] [PATCH] ffplay: remove empty subtitles from que head

Michael Niedermayer michaelni at gmx.at
Sat Jul 12 00:55:31 CEST 2014


Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 ffplay.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/ffplay.c b/ffplay.c
index 7e954fd..6572c42 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1446,6 +1446,7 @@ retry:
                             sp2 = NULL;
 
                         if (sp->serial != is->subtitleq.serial
+                                || !sp->sub.num_rects
                                 || (is->vidclk.pts > (sp->pts + ((float) sp->sub.end_display_time / 1000)))
                                 || (sp2 && is->vidclk.pts > (sp2->pts + ((float) sp2->sub.start_display_time / 1000))))
                         {
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list