mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-12-24 11:52:06 +08:00
switch to native time bases
Originally committed as revision 4168 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -610,7 +610,7 @@ static void rtp_send_mpegvideo(AVFormatContext *s1,
|
||||
|
||||
/* 90 KHz time stamp */
|
||||
s->timestamp = s->base_timestamp +
|
||||
av_rescale((int64_t)s->cur_timestamp * st->codec.frame_rate_base, 90000, st->codec.frame_rate);
|
||||
av_rescale((int64_t)s->cur_timestamp * st->codec.time_base.num, 90000, st->codec.time_base.den); //FIXME pass timestamps
|
||||
rtp_send_data(s1, s->buf, q - s->buf);
|
||||
|
||||
buf1 += len;
|
||||
@@ -635,7 +635,7 @@ static void rtp_send_raw(AVFormatContext *s1,
|
||||
|
||||
/* 90 KHz time stamp */
|
||||
s->timestamp = s->base_timestamp +
|
||||
av_rescale((int64_t)s->cur_timestamp * st->codec.frame_rate_base, 90000, st->codec.frame_rate);
|
||||
av_rescale((int64_t)s->cur_timestamp * st->codec.time_base.num, 90000, st->codec.time_base.den); //FIXME pass timestamps
|
||||
rtp_send_data(s1, buf1, len);
|
||||
|
||||
buf1 += len;
|
||||
|
||||
Reference in New Issue
Block a user