ffplay: fix missed conversion of video_current_pts to vidclk.pts in subtitles
authorMarton Balint <cus@passwd.hu>
Sat, 15 Jun 2013 16:26:22 +0000 (18:26 +0200)
committerMarton Balint <cus@passwd.hu>
Sun, 16 Jun 2013 23:18:07 +0000 (01:18 +0200)
Fixes regression with subtitles introduced in f2175a6.
Fixes ticket #2666.

Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay.c

index 65b7cb0..ae99146 100644 (file)
--- a/ffplay.c
+++ b/ffplay.c
@@ -1429,8 +1429,8 @@ retry:
                         else
                             sp2 = NULL;
 
-                        if ((is->video_current_pts > (sp->pts + ((float) sp->sub.end_display_time / 1000)))
-                                || (sp2 && is->video_current_pts > (sp2->pts + ((float) sp2->sub.start_display_time / 1000))))
+                        if ((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))))
                         {
                             free_subpicture(sp);