diff options
author | Josh Allmann <joshua.allmann@gmail.com> | 2010-08-25 09:15:31 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-08-25 09:15:31 +0000 |
commit | 7f3468d3923b1703e0e4f7f534e7c68728f4393e (patch) | |
tree | eaffa2daaa61549c7ea4f2af34a41d8f8b01e2c1 /libavformat/rtpenc.c | |
parent | d21caa952c47e004c40ab62ef5239dc5fd6726ed (diff) | |
download | ffmpeg-7f3468d3923b1703e0e4f7f534e7c68728f4393e.tar.gz |
rtp: Replace hardcoded RTCP packet types with defines
Patch by Josh Allmann, joshua dot allmann at gmail
Originally committed as revision 24912 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtpenc.c')
-rw-r--r-- | libavformat/rtpenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtpenc.c b/libavformat/rtpenc.c index a6ba3e50b1..f5e1e3bbd3 100644 --- a/libavformat/rtpenc.c +++ b/libavformat/rtpenc.c @@ -191,7 +191,7 @@ static void rtcp_send_sr(AVFormatContext *s1, int64_t ntp_time) 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); + put_byte(s1->pb, RTCP_SR); put_be16(s1->pb, 6); /* length in words - 1 */ put_be32(s1->pb, s->ssrc); put_be32(s1->pb, ntp_time / 1000000); |