summaryrefslogtreecommitdiff
path: root/libavcodec/librsvgdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/librsvgdec.c')
-rw-r--r--libavcodec/librsvgdec.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/libavcodec/librsvgdec.c b/libavcodec/librsvgdec.c
index 2895bbf28b..4a3b0c8ce7 100644
--- a/libavcodec/librsvgdec.c
+++ b/libavcodec/librsvgdec.c
@@ -20,6 +20,7 @@
*/
#include "avcodec.h"
+#include "codec_internal.h"
#include "internal.h"
#include "libavutil/opt.h"
#include "librsvg-2.0/librsvg/rsvg.h"
@@ -117,14 +118,14 @@ static const AVClass librsvg_decoder_class = {
.version = LIBAVUTIL_VERSION_INT,
};
-const AVCodec ff_librsvg_decoder = {
- .name = "librsvg",
- .long_name = NULL_IF_CONFIG_SMALL("Librsvg rasterizer"),
- .priv_class = &librsvg_decoder_class,
- .type = AVMEDIA_TYPE_VIDEO,
- .id = AV_CODEC_ID_SVG,
+const FFCodec ff_librsvg_decoder = {
+ .p.name = "librsvg",
+ .p.long_name = NULL_IF_CONFIG_SMALL("Librsvg rasterizer"),
+ .p.priv_class = &librsvg_decoder_class,
+ .p.type = AVMEDIA_TYPE_VIDEO,
+ .p.id = AV_CODEC_ID_SVG,
+ .p.capabilities = AV_CODEC_CAP_DR1,
+ .p.wrapper_name = "librsvg",
.decode = librsvg_decode_frame,
.priv_data_size = sizeof(LibRSVGContext),
- .capabilities = AV_CODEC_CAP_DR1,
- .wrapper_name = "librsvg",
};