aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-05-22 14:02:51 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-06-06 02:39:01 +0200
commitf07376402cdd68c40ad602b2f5a43989348bb587 (patch)
tree5ccd433ca26fe90e00da97e6aee9ea8bca329d48
parent802cca5905abe1fe8392e85a812462b959889aaa (diff)
downloadffmpeg-f07376402cdd68c40ad602b2f5a43989348bb587.tar.gz
avformat/mxfenc: Add mxf muxer avclass
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/mxfenc.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c
index 11487acac2..c61274790f 100644
--- a/libavformat/mxfenc.c
+++ b/libavformat/mxfenc.c
@@ -2627,6 +2627,17 @@ static int mxf_interleave(AVFormatContext *s, AVPacket *out, AVPacket *pkt, int
mxf_interleave_get_packet, mxf_compare_timestamps);
}
+static const AVOption mxf_options[] = {
+ { NULL },
+};
+
+static const AVClass mxf_muxer_class = {
+ .class_name = "MXF muxer",
+ .item_name = av_default_item_name,
+ .option = mxf_options,
+ .version = LIBAVUTIL_VERSION_INT,
+};
+
static const AVOption d10_options[] = {
{ "d10_channelcount", "Force/set channelcount in generic sound essence descriptor",
offsetof(MXFContext, channel_count), AV_OPT_TYPE_INT, {.i64 = -1}, -1, 8, AV_OPT_FLAG_ENCODING_PARAM},
@@ -2666,6 +2677,7 @@ AVOutputFormat ff_mxf_muxer = {
.write_trailer = mxf_write_footer,
.flags = AVFMT_NOTIMESTAMPS,
.interleave_packet = mxf_interleave,
+ .priv_class = &mxf_muxer_class,
};
AVOutputFormat ff_mxf_d10_muxer = {