rtspenc: Add an AVClass for setting muxer specific options
authorMartin Storsjö <martin@martin.st>
Sat, 21 May 2011 12:03:35 +0000 (15:03 +0300)
committerMartin Storsjö <martin@martin.st>
Fri, 10 Jun 2011 07:50:41 +0000 (10:50 +0300)
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtspenc.c

index c1fc97c..b7fa330 100644 (file)
 #include "libavutil/intreadwrite.h"
 #include "libavutil/avstring.h"
 #include "url.h"
+#include "libavutil/opt.h"
 
 #define SDP_MAX_SIZE 16384
 
+static const AVOption options[] = {
+    { NULL },
+};
+
+static const AVClass rtsp_muxer_class = {
+    .class_name = "RTSP muxer",
+    .item_name  = av_default_item_name,
+    .option     = options,
+    .version    = LIBAVUTIL_VERSION_INT,
+};
+
 int ff_rtsp_setup_output_streams(AVFormatContext *s, const char *addr)
 {
     RTSPState *rt = s->priv_data;
@@ -238,5 +250,6 @@ AVOutputFormat ff_rtsp_muxer = {
     rtsp_write_packet,
     rtsp_write_close,
     .flags = AVFMT_NOFILE | AVFMT_GLOBALHEADER,
+    .priv_class = &rtsp_muxer_class,
 };