From 7f3468d3923b1703e0e4f7f534e7c68728f4393e Mon Sep 17 00:00:00 2001 From: Josh Allmann Date: Wed, 25 Aug 2010 09:15:31 +0000 Subject: 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 --- libavformat/rtpproto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/rtpproto.c') 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 { -- cgit v1.2.1