[FFmpeg-cvslog] lavf/asfenc: add AVClass to context

Marton Balint git at videolan.org
Fri Feb 5 21:39:35 CET 2016


ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Thu Feb  4 00:26:58 2016 +0100| [7e6b788f7c4ddd20b25e1d10451d7825c6c60a34] | committer: Marton Balint

lavf/asfenc: add AVClass to context

Reviewed-by: Michael Niedermayer <michael at niedermayer.cc>
Signed-off-by: Marton Balint <cus at passwd.hu>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7e6b788f7c4ddd20b25e1d10451d7825c6c60a34
---

 libavformat/asfenc.c |   17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/libavformat/asfenc.c b/libavformat/asfenc.c
index 87993b6..9f082c6 100644
--- a/libavformat/asfenc.c
+++ b/libavformat/asfenc.c
@@ -216,6 +216,7 @@ typedef struct ASFStream {
 } ASFStream;
 
 typedef struct ASFContext {
+    AVClass *av_class;
     uint32_t seqno;
     int is_streamed;
     ASFStream streams[128];              ///< it's max number and it's not that big
@@ -1044,6 +1045,13 @@ static int asf_write_trailer(AVFormatContext *s)
 }
 
 #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 = {
     .name           = "asf",
     .long_name      = NULL_IF_CONFIG_SMALL("ASF (Advanced / Active Streaming Format)"),
@@ -1059,10 +1067,18 @@ AVOutputFormat ff_asf_muxer = {
     .codec_tag      = (const AVCodecTag * const []) {
         codec_asf_bmp_tags, ff_codec_bmp_tags, ff_codec_wav_tags, 0
     },
+    .priv_class        = &asf_muxer_class,
 };
 #endif /* CONFIG_ASF_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 = {
     .name           = "asf_stream",
     .long_name      = NULL_IF_CONFIG_SMALL("ASF (Advanced / Active Streaming Format)"),
@@ -1078,5 +1094,6 @@ AVOutputFormat ff_asf_stream_muxer = {
     .codec_tag      = (const AVCodecTag * const []) {
         codec_asf_bmp_tags, ff_codec_bmp_tags, ff_codec_wav_tags, 0
     },
+    .priv_class        = &asf_stream_muxer_class,
 };
 #endif /* CONFIG_ASF_STREAM_MUXER */



More information about the ffmpeg-cvslog mailing list