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
This commit is contained in:
Reimar Döffinger
2009-06-19 08:28:07 +00:00
parent 97668ac7f3
commit 4bbe788ab7
3 changed files with 9 additions and 2 deletions

View File

@ -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);