[10/10] movenc: Add a RTP muxer/hinter options

Message ID 1306759389-52914-1-git-send-email-martin@martin.st
State Committed
Headers show

Commit Message

Martin Storsjö May 30, 2011, 12:43 p.m.
---
 libavformat/movenc.c |    2 ++
 libavformat/movenc.h |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)

Patch

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 3ac6dc5..82bedf8 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -33,6 +33,7 @@ 
 #include "internal.h"
 #include "libavutil/avstring.h"
 #include "libavutil/opt.h"
+#include "rtpenc.h"
 
 #undef NDEBUG
 #include <assert.h>
@@ -40,6 +41,7 @@ 
 static const AVOption options[] = {
     { "movflags", "MOV muxer flags", offsetof(MOVMuxContext, flags), FF_OPT_TYPE_FLAGS, {.dbl = 0}, INT_MIN, INT_MAX, AV_OPT_FLAG_ENCODING_PARAM, "movflags" },
     { "rtphint", "Add RTP hint tracks", 0, FF_OPT_TYPE_CONST, {.dbl = FF_MOV_FLAG_RTP_HINT}, INT_MIN, INT_MAX, AV_OPT_FLAG_ENCODING_PARAM, "movflags" },
+    FF_RTP_FLAG_OPTS(MOVMuxContext, rtp_flags),
     { NULL },
 };
 
diff --git a/libavformat/movenc.h b/libavformat/movenc.h
index 69b6621..39cdb39 100644
--- a/libavformat/movenc.h
+++ b/libavformat/movenc.h
@@ -111,6 +111,7 @@  typedef struct MOVMuxContext {
     MOVTrack *tracks;
 
     int flags;
+    int rtp_flags;
 } MOVMuxContext;
 
 #define FF_MOV_FLAG_RTP_HINT 1