[FFmpeg-cvslog] ffplay: use PTS from the AVSubtitle structure.
Nicolas George
git at videolan.org
Sat Sep 15 16:24:47 CEST 2012
ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Sun Sep 9 16:28:51 2012 +0200| [2939e258f9d1fff89b3b68536beb931b54611585] | committer: Nicolas George
ffplay: use PTS from the AVSubtitle structure.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2939e258f9d1fff89b3b68536beb931b54611585
---
ffplay.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ffplay.c b/ffplay.c
index 42f03b8..1c9a141 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1840,8 +1840,9 @@ static int subtitle_thread(void *arg)
avcodec_decode_subtitle2(is->subtitle_st->codec, &sp->sub,
&got_subtitle, pkt);
-
if (got_subtitle && sp->sub.format == 0) {
+ if (sp->sub.pts != AV_NOPTS_VALUE)
+ pts = sp->sub.pts / (double)AV_TIME_BASE;
sp->pts = pts;
for (i = 0; i < sp->sub.num_rects; i++)
More information about the ffmpeg-cvslog
mailing list