Commit 6cf09bb7 authored by Martin Storsjö's avatar Martin Storsjö

rtspenc: Add an AVClass for setting muxer specific options

Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent ff0824f7
...@@ -33,9 +33,21 @@ ...@@ -33,9 +33,21 @@
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "libavutil/avstring.h" #include "libavutil/avstring.h"
#include "url.h" #include "url.h"
#include "libavutil/opt.h"
#define SDP_MAX_SIZE 16384 #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) int ff_rtsp_setup_output_streams(AVFormatContext *s, const char *addr)
{ {
RTSPState *rt = s->priv_data; RTSPState *rt = s->priv_data;
...@@ -238,5 +250,6 @@ AVOutputFormat ff_rtsp_muxer = { ...@@ -238,5 +250,6 @@ AVOutputFormat ff_rtsp_muxer = {
rtsp_write_packet, rtsp_write_packet,
rtsp_write_close, rtsp_write_close,
.flags = AVFMT_NOFILE | AVFMT_GLOBALHEADER, .flags = AVFMT_NOFILE | AVFMT_GLOBALHEADER,
.priv_class = &rtsp_muxer_class,
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment