diff options
Diffstat (limited to 'libavcodec/xwddec.c')
-rw-r--r-- | libavcodec/xwddec.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/libavcodec/xwddec.c b/libavcodec/xwddec.c index 7b8228332f..3d86b2b82d 100644 --- a/libavcodec/xwddec.c +++ b/libavcodec/xwddec.c @@ -25,6 +25,7 @@ #include "libavutil/imgutils.h" #include "avcodec.h" #include "bytestream.h" +#include "codec_internal.h" #include "internal.h" #include "xwd.h" @@ -247,11 +248,11 @@ static int xwd_decode_frame(AVCodecContext *avctx, void *data, return buf_size; } -const AVCodec ff_xwd_decoder = { - .name = "xwd", - .long_name = NULL_IF_CONFIG_SMALL("XWD (X Window Dump) image"), - .type = AVMEDIA_TYPE_VIDEO, - .id = AV_CODEC_ID_XWD, +const FFCodec ff_xwd_decoder = { + .p.name = "xwd", + .p.long_name = NULL_IF_CONFIG_SMALL("XWD (X Window Dump) image"), + .p.type = AVMEDIA_TYPE_VIDEO, + .p.id = AV_CODEC_ID_XWD, + .p.capabilities = AV_CODEC_CAP_DR1, .decode = xwd_decode_frame, - .capabilities = AV_CODEC_CAP_DR1, }; |