1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

libwebp: use a separate AVClass for each encoder

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2015-05-23 01:51:45 -03:00
parent 44ca8a6adb
commit 1096c46c55
3 changed files with 14 additions and 8 deletions

View File

@ -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"),

View File

@ -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"),

View File

@ -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" },