summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Abeni <lucabe72@email.it>2008-06-25 11:55:57 +0000
committerLuca Abeni <lucabe72@email.it>2008-06-25 11:55:57 +0000
commita4696aa2fe88c21927835e59d543eb2efbfabaef (patch)
treecfa681240879d3d65ded83f92129e971cc911aaa
parent5a8939698932bcd8a34574c9472af8901fa80729 (diff)
Remove improper usage of AV_TIME_BASE_Q
Originally committed as revision 13960 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/rtpenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/rtpenc.c b/libavformat/rtpenc.c
index c1e8e16f07..f68861bf22 100644
--- a/libavformat/rtpenc.c
+++ b/libavformat/rtpenc.c
@@ -81,7 +81,7 @@ static int rtp_write_header(AVFormatContext *s1)
}
if (st->codec->codec_type == CODEC_TYPE_VIDEO) {
/* FIXME: We should round down here... */
- s->max_frames_per_packet = av_rescale_q(s1->max_delay, AV_TIME_BASE_Q, st->codec->time_base);
+ s->max_frames_per_packet = av_rescale_q(s1->max_delay, (AVRational){1, 1000000}, st->codec->time_base);
}
}
@@ -126,7 +126,7 @@ static void rtcp_send_sr(AVFormatContext *s1, int64_t ntp_time)
if (s->first_rtcp_ntp_time == AV_NOPTS_VALUE) s->first_rtcp_ntp_time = ntp_time;
s->last_rtcp_ntp_time = ntp_time;
- rtp_ts = av_rescale_q(ntp_time - s->first_rtcp_ntp_time, AV_TIME_BASE_Q,
+ rtp_ts = av_rescale_q(ntp_time - s->first_rtcp_ntp_time, (AVRational){1, 1000000},
s1->streams[0]->time_base) + s->base_timestamp;
put_byte(s1->pb, (RTP_VERSION << 6));
put_byte(s1->pb, 200);