[08/10] rtspenc: Add RTP muxer options

Message ID 1306759304-52856-9-git-send-email-martin@martin.st
State Committed
Headers show

Commit Message

Martin Storsjö May 30, 2011, 12:41 p.m.
---
 libavformat/rtsp.h    |    5 +++++
 libavformat/rtspenc.c |    2 ++
 2 files changed, 7 insertions(+), 0 deletions(-)

Patch

diff --git a/libavformat/rtsp.h b/libavformat/rtsp.h
index f5a7fad..5eae6bf 100644
--- a/libavformat/rtsp.h
+++ b/libavformat/rtsp.h
@@ -344,6 +344,11 @@  typedef struct RTSPState {
      * Do not begin to play the stream immediately.
      */
     int initial_pause;
+
+    /**
+     * Option flags for the chained RTP muxer.
+     */
+    int rtp_muxer_flags;
 } RTSPState;
 
 /**
diff --git a/libavformat/rtspenc.c b/libavformat/rtspenc.c
index b7fa330..b76b6ad 100644
--- a/libavformat/rtspenc.c
+++ b/libavformat/rtspenc.c
@@ -34,10 +34,12 @@ 
 #include "libavutil/avstring.h"
 #include "url.h"
 #include "libavutil/opt.h"
+#include "rtpenc.h"
 
 #define SDP_MAX_SIZE 16384
 
 static const AVOption options[] = {
+    FF_RTP_FLAG_OPTS(RTSPState, rtp_muxer_flags),
     { NULL },
 };