diff rtpproto.c @ 6404:37944ce385a0 libavformat

rtp: Replace hardcoded RTCP packet types with defines Patch by Josh Allmann, joshua dot allmann at gmail
author mstorsjo
date Wed, 25 Aug 2010 09:15:31 +0000
parents ccb05424c391
children 179ddd49895f
line wrap: on
line diff
--- a/rtpproto.c	Tue Aug 24 15:08:53 2010 +0000
+++ b/rtpproto.c	Wed Aug 25 09:15:31 2010 +0000
@@ -285,7 +285,7 @@
     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 {