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/rtspenc.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/rtspenc.c')
-rw-r--r-- | libavformat/rtspenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtspenc.c b/libavformat/rtspenc.c index a4c7fd9a10..9a9fa5a08b 100644 --- a/libavformat/rtspenc.c +++ b/libavformat/rtspenc.c @@ -85,7 +85,7 @@ static int tcp_write_packet(AVFormatContext *s, RTSPStream *rtsp_st) size -= 4; if (packet_len > size || packet_len < 2) break; - if (ptr[1] >= 200 && ptr[1] <= 204) + if (ptr[1] >= RTCP_SR && ptr[1] <= RTCP_APP) id = rtsp_st->interleaved_max; /* RTCP */ else id = rtsp_st->interleaved_min; /* RTP */ |