summaryrefslogtreecommitdiff
path: root/libavformat/rtp.h
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2012-10-17 01:45:39 +0300
committerMartin Storsjö <martin@martin.st>2012-10-18 23:10:20 +0300
commit0de9380be54e9ccf49631a93f49cff8b8329ec54 (patch)
treec6acb3bc05259a3b2e3e5befd3cef45b0a246f33 /libavformat/rtp.h
parent7a12d97eb1aac6621f20cb7bffd0f74f8e46ae2c (diff)
rtp: Update the check for distinguishing between RTP and RTCP
Also add enums for more RTCP packet types, according to the IANA list of registered types. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtp.h')
-rw-r--r--libavformat/rtp.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/libavformat/rtp.h b/libavformat/rtp.h
index b01caebb32..6df4ed4f19 100644
--- a/libavformat/rtp.h
+++ b/libavformat/rtp.h
@@ -84,13 +84,24 @@ enum AVCodecID ff_rtp_codec_id(const char *buf, enum AVMediaType codec_type);
/* RTCP packet types */
enum RTCPType {
+ RTCP_FIR = 192,
+ RTCP_NACK, // 193
+ RTCP_SMPTETC,// 194
+ RTCP_IJ, // 195
RTCP_SR = 200,
RTCP_RR, // 201
RTCP_SDES, // 202
RTCP_BYE, // 203
- RTCP_APP // 204
+ RTCP_APP, // 204
+ RTCP_RTPFB,// 205
+ RTCP_PSFB, // 206
+ RTCP_XR, // 207
+ RTCP_AVB, // 208
+ RTCP_RSI, // 209
+ RTCP_TOKEN,// 210
};
-#define RTP_PT_IS_RTCP(x) ((x) >= RTCP_SR && (x) <= RTCP_APP)
+#define RTP_PT_IS_RTCP(x) (((x) >= RTCP_FIR && (x) <= RTCP_IJ) || \
+ ((x) >= RTCP_SR && (x) <= RTCP_TOKEN))
#endif /* AVFORMAT_RTP_H */