summaryrefslogtreecommitdiff
path: root/libavformat/rtsp.h
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2013-08-13 13:21:35 +0300
committerMartin Storsjö <martin@martin.st>2013-08-14 11:21:33 +0300
commitb56fc18b20d62c3d2a134b53738deaabfd491e89 (patch)
treecb047a38fc78e7d205f109a1d48633da105a0e7d /libavformat/rtsp.h
parent6b58e11a8331690ec32e9869db89ae10c54614e9 (diff)
sdp: Add an option for sending RTCP packets to the source of the last packets
An SDP description normally only contains the target IP address and port for the packets. This means that we don't really have any clue where to send the RTCP RR packets - previously they're sent to the destination IP written in the SDP (at the same port), which rarely is the actual peer. And if the source for the packets is on a different port than the destination, it's never correct. With a new option, we can choose to send the packets to the address that the latest packet on each socket arrived from. --- Some may even argue that this should be the default - perhaps, but I'd rather keep it optional at first. Additionally, I'm not sure if sending RTCP RR directly back to the source is desireable for e.g. multicast. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtsp.h')
-rw-r--r--libavformat/rtsp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/rtsp.h b/libavformat/rtsp.h
index e01ba98e23..c6f2ffae4b 100644
--- a/libavformat/rtsp.h
+++ b/libavformat/rtsp.h
@@ -401,6 +401,8 @@ typedef struct RTSPState {
source address and port. */
#define RTSP_FLAG_LISTEN 0x2 /**< Wait for incoming connections. */
#define RTSP_FLAG_CUSTOM_IO 0x4 /**< Do all IO via the AVIOContext. */
+#define RTSP_FLAG_RTCP_TO_SOURCE 0x8 /**< Send RTCP packets to the source
+ address of received packets. */
typedef struct RTSPSource {
char addr[128]; /**< Source-specific multicast include source IP address (from SDP content) */