summaryrefslogtreecommitdiff
path: root/libavcodec/sunrast.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/sunrast.c')
-rw-r--r--libavcodec/sunrast.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/libavcodec/sunrast.c b/libavcodec/sunrast.c
index 7e9a9b0be5..d52a34df0f 100644
--- a/libavcodec/sunrast.c
+++ b/libavcodec/sunrast.c
@@ -23,6 +23,7 @@
#include "libavutil/intreadwrite.h"
#include "libavutil/imgutils.h"
#include "avcodec.h"
+#include "codec_internal.h"
#include "internal.h"
#include "sunrast.h"
@@ -205,11 +206,11 @@ static int sunrast_decode_frame(AVCodecContext *avctx, void *data,
return buf - bufstart;
}
-const AVCodec ff_sunrast_decoder = {
- .name = "sunrast",
- .long_name = NULL_IF_CONFIG_SMALL("Sun Rasterfile image"),
- .type = AVMEDIA_TYPE_VIDEO,
- .id = AV_CODEC_ID_SUNRAST,
+const FFCodec ff_sunrast_decoder = {
+ .p.name = "sunrast",
+ .p.long_name = NULL_IF_CONFIG_SMALL("Sun Rasterfile image"),
+ .p.type = AVMEDIA_TYPE_VIDEO,
+ .p.id = AV_CODEC_ID_SUNRAST,
+ .p.capabilities = AV_CODEC_CAP_DR1,
.decode = sunrast_decode_frame,
- .capabilities = AV_CODEC_CAP_DR1,
};