From f011fcd67edf27d2b1f6fcdff0b4c19da36176e9 Mon Sep 17 00:00:00 2001 From: John Brooks Date: Sat, 29 Oct 2011 15:41:24 -0600 Subject: rtsp: add allowed_media_types option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Streams from RTSP or SDP that do not match an allowed type will be skipped entirely, which allows video-only or audio-only streaming from servers that provide both. Signed-off-by: Martin Storsjö --- libavformat/rtsp.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libavformat/rtsp.h') diff --git a/libavformat/rtsp.h b/libavformat/rtsp.h index 7143acbe4f..45b0032797 100644 --- a/libavformat/rtsp.h +++ b/libavformat/rtsp.h @@ -354,6 +354,11 @@ typedef struct RTSPState { * Various option flags for the RTSP muxer/demuxer. */ int rtsp_flags; + + /** + * Mask of all requested media types + */ + int media_type_mask; } RTSPState; #define RTSP_FLAG_FILTER_SRC 0x1 /**< Filter incoming UDP packets - -- cgit v1.2.3