Commit 7e6b788f authored by Marton Balint's avatar Marton Balint

lavf/asfenc: add AVClass to context

Reviewed-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
parent b1fe7940
...@@ -216,6 +216,7 @@ typedef struct ASFStream { ...@@ -216,6 +216,7 @@ typedef struct ASFStream {
} ASFStream; } ASFStream;
typedef struct ASFContext { typedef struct ASFContext {
AVClass *av_class;
uint32_t seqno; uint32_t seqno;
int is_streamed; int is_streamed;
ASFStream streams[128]; ///< it's max number and it's not that big ASFStream streams[128]; ///< it's max number and it's not that big
...@@ -1044,6 +1045,13 @@ static int asf_write_trailer(AVFormatContext *s) ...@@ -1044,6 +1045,13 @@ static int asf_write_trailer(AVFormatContext *s)
} }
#if CONFIG_ASF_MUXER #if CONFIG_ASF_MUXER
static const AVClass asf_muxer_class = {
.class_name = "ASF muxer",
.item_name = av_default_item_name,
.option = 0,
.version = LIBAVUTIL_VERSION_INT,
};
AVOutputFormat ff_asf_muxer = { AVOutputFormat ff_asf_muxer = {
.name = "asf", .name = "asf",
.long_name = NULL_IF_CONFIG_SMALL("ASF (Advanced / Active Streaming Format)"), .long_name = NULL_IF_CONFIG_SMALL("ASF (Advanced / Active Streaming Format)"),
...@@ -1059,10 +1067,18 @@ AVOutputFormat ff_asf_muxer = { ...@@ -1059,10 +1067,18 @@ AVOutputFormat ff_asf_muxer = {
.codec_tag = (const AVCodecTag * const []) { .codec_tag = (const AVCodecTag * const []) {
codec_asf_bmp_tags, ff_codec_bmp_tags, ff_codec_wav_tags, 0 codec_asf_bmp_tags, ff_codec_bmp_tags, ff_codec_wav_tags, 0
}, },
.priv_class = &asf_muxer_class,
}; };
#endif /* CONFIG_ASF_MUXER */ #endif /* CONFIG_ASF_MUXER */
#if CONFIG_ASF_STREAM_MUXER #if CONFIG_ASF_STREAM_MUXER
static const AVClass asf_stream_muxer_class = {
.class_name = "ASF stream muxer",
.item_name = av_default_item_name,
.option = 0,
.version = LIBAVUTIL_VERSION_INT,
};
AVOutputFormat ff_asf_stream_muxer = { AVOutputFormat ff_asf_stream_muxer = {
.name = "asf_stream", .name = "asf_stream",
.long_name = NULL_IF_CONFIG_SMALL("ASF (Advanced / Active Streaming Format)"), .long_name = NULL_IF_CONFIG_SMALL("ASF (Advanced / Active Streaming Format)"),
...@@ -1078,5 +1094,6 @@ AVOutputFormat ff_asf_stream_muxer = { ...@@ -1078,5 +1094,6 @@ AVOutputFormat ff_asf_stream_muxer = {
.codec_tag = (const AVCodecTag * const []) { .codec_tag = (const AVCodecTag * const []) {
codec_asf_bmp_tags, ff_codec_bmp_tags, ff_codec_wav_tags, 0 codec_asf_bmp_tags, ff_codec_bmp_tags, ff_codec_wav_tags, 0
}, },
.priv_class = &asf_stream_muxer_class,
}; };
#endif /* CONFIG_ASF_STREAM_MUXER */ #endif /* CONFIG_ASF_STREAM_MUXER */
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