Commit 2939e258 authored by Nicolas George's avatar Nicolas George

ffplay: use PTS from the AVSubtitle structure.

parent 6d8b3263
......@@ -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++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment