summaryrefslogtreecommitdiff
path: root/libavformat/rtpproto.c
diff options
context:
space:
mode:
authorJosh Allmann <joshua.allmann@gmail.com>2010-08-25 09:15:31 +0000
committerMartin Storsjö <martin@martin.st>2010-08-25 09:15:31 +0000
commit7f3468d3923b1703e0e4f7f534e7c68728f4393e (patch)
treeeaffa2daaa61549c7ea4f2af34a41d8f8b01e2c1 /libavformat/rtpproto.c
parentd21caa952c47e004c40ab62ef5239dc5fd6726ed (diff)
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/rtpproto.c')
-rw-r--r--libavformat/rtpproto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtpproto.c b/libavformat/rtpproto.c
index 46511bab60..289a253f9e 100644
--- a/libavformat/rtpproto.c
+++ b/libavformat/rtpproto.c
@@ -285,7 +285,7 @@ static int rtp_write(URLContext *h, const uint8_t *buf, int size)
int ret;
URLContext *hd;
- if (buf[1] >= 200 && buf[1] <= 204) {
+ if (buf[1] >= RTCP_SR && buf[1] <= RTCP_APP) {
/* RTCP payload type */
hd = s->rtcp_hd;
} else {