diff options
author | Martin Storsjö <martin@martin.st> | 2011-05-21 15:03:35 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2011-06-10 10:50:41 +0300 |
commit | 6cf09bb7ef5a52b9d9b589067d94a5c80f9fe848 (patch) | |
tree | 7f27c880588152b82b60b1f60c3569412ded3e56 /libavformat | |
parent | ff0824f72c25787b6ad60b5c90a25473995e68c6 (diff) | |
download | ffmpeg-6cf09bb7ef5a52b9d9b589067d94a5c80f9fe848.tar.gz |
rtspenc: Add an AVClass for setting muxer specific options
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/rtspenc.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libavformat/rtspenc.c b/libavformat/rtspenc.c index c1fc97ca8f..b7fa330f53 100644 --- a/libavformat/rtspenc.c +++ b/libavformat/rtspenc.c @@ -33,9 +33,21 @@ #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, }; |