diff options
Diffstat (limited to 'libavcodec/targa.c')
-rw-r--r-- | libavcodec/targa.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/libavcodec/targa.c b/libavcodec/targa.c index b0048621d3..a354bca06e 100644 --- a/libavcodec/targa.c +++ b/libavcodec/targa.c @@ -23,6 +23,7 @@ #include "libavutil/imgutils.h" #include "avcodec.h" #include "bytestream.h" +#include "codec_internal.h" #include "internal.h" #include "targa.h" @@ -306,12 +307,12 @@ static int decode_frame(AVCodecContext *avctx, return avpkt->size; } -const AVCodec ff_targa_decoder = { - .name = "targa", - .long_name = NULL_IF_CONFIG_SMALL("Truevision Targa image"), - .type = AVMEDIA_TYPE_VIDEO, - .id = AV_CODEC_ID_TARGA, +const FFCodec ff_targa_decoder = { + .p.name = "targa", + .p.long_name = NULL_IF_CONFIG_SMALL("Truevision Targa image"), + .p.type = AVMEDIA_TYPE_VIDEO, + .p.id = AV_CODEC_ID_TARGA, + .p.capabilities = AV_CODEC_CAP_DR1, .priv_data_size = sizeof(TargaContext), .decode = decode_frame, - .capabilities = AV_CODEC_CAP_DR1, }; |