[FFmpeg-cvslog] libwebp: use a separate AVClass for each encoder

James Almer git at videolan.org
Sat May 23 06:53:34 CEST 2015


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sat May 23 01:51:45 2015 -0300| [1096c46c55d6bbac5c2decbca49f083d079c1642] | committer: James Almer

libwebp: use a separate AVClass for each encoder

Signed-off-by: James Almer <jamrial at gmail.com>

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

 libavcodec/libwebpenc.c             |    7 +++++++
 libavcodec/libwebpenc_animencoder.c |    7 +++++++
 libavcodec/libwebpenc_common.h      |    8 --------
 3 files changed, 14 insertions(+), 8 deletions(-)

diff --git a/libavcodec/libwebpenc.c b/libavcodec/libwebpenc.c
index 6896742..4c22a9b 100644
--- a/libavcodec/libwebpenc.c
+++ b/libavcodec/libwebpenc.c
@@ -83,6 +83,13 @@ static int libwebp_encode_close(AVCodecContext *avctx)
     return ff_libwebp_encode_close_common(avctx);
 }
 
+static const AVClass class = {
+    .class_name = "libwebp",
+    .item_name  = av_default_item_name,
+    .option     = options,
+    .version    = LIBAVUTIL_VERSION_INT,
+};
+
 AVCodec ff_libwebp_encoder = {
     .name           = "libwebp",
     .long_name      = NULL_IF_CONFIG_SMALL("libwebp WebP image"),
diff --git a/libavcodec/libwebpenc_animencoder.c b/libavcodec/libwebpenc_animencoder.c
index 40a694b..c1e2a1c 100644
--- a/libavcodec/libwebpenc_animencoder.c
+++ b/libavcodec/libwebpenc_animencoder.c
@@ -124,6 +124,13 @@ static int libwebp_anim_encode_close(AVCodecContext *avctx)
     return ret;
 }
 
+static const AVClass class = {
+    .class_name = "libwebp_anim",
+    .item_name  = av_default_item_name,
+    .option     = options,
+    .version    = LIBAVUTIL_VERSION_INT,
+};
+
 AVCodec ff_libwebp_anim_encoder = {
     .name           = "libwebp_anim",
     .long_name      = NULL_IF_CONFIG_SMALL("libwebp WebP image"),
diff --git a/libavcodec/libwebpenc_common.h b/libavcodec/libwebpenc_common.h
index 1126fd0..7e653da 100644
--- a/libavcodec/libwebpenc_common.h
+++ b/libavcodec/libwebpenc_common.h
@@ -77,14 +77,6 @@ static const AVOption options[] = {
     { NULL },
 };
 
-
-static const AVClass class = {
-    .class_name = "libwebp",
-    .item_name  = av_default_item_name,
-    .option     = options,
-    .version    = LIBAVUTIL_VERSION_INT,
-};
-
 static const AVCodecDefault libwebp_defaults[] = {
     { "compression_level",  "4"  },
     { "global_quality",     "-1" },



More information about the ffmpeg-cvslog mailing list