summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-06-19 08:28:07 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-06-19 08:28:07 +0000
commit4bbe788ab7d1348d09026ef0c8554595fad5721d (patch)
treee4042aa0a8aaad25b76b11c36bef21f896fdeb81 /ffmpeg.c
parent97668ac7f384ea436cec69331cd91bbaad27bd33 (diff)
Add pts field to AVSubtitle, for use by future XSUB encoder (and XSUB decoder
should use it, too). Originally committed as revision 19221 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index b9af4b17d7..f0e7bdb27c 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -814,6 +814,7 @@ static void do_subtitle_out(AVFormatContext *s,
nb = 1;
for(i = 0; i < nb; i++) {
+ sub->pts = av_rescale_q(pts, ist->st->time_base, AV_TIME_BASE_Q);
subtitle_out_size = avcodec_encode_subtitle(enc, subtitle_out,
subtitle_out_max_size, sub);