diff options
Diffstat (limited to 'libavcodec/dvbsubenc.c')
-rw-r--r-- | libavcodec/dvbsubenc.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libavcodec/dvbsubenc.c b/libavcodec/dvbsubenc.c index 322fc27cb4..5444dbfa99 100644 --- a/libavcodec/dvbsubenc.c +++ b/libavcodec/dvbsubenc.c @@ -20,6 +20,7 @@ */ #include "avcodec.h" #include "bytestream.h" +#include "codec_internal.h" #include "libavutil/colorspace.h" typedef struct DVBSubtitleContext { @@ -505,11 +506,11 @@ static int dvbsub_encode(AVCodecContext *avctx, uint8_t *outbuf, int buf_size, return q - outbuf; } -const AVCodec ff_dvbsub_encoder = { - .name = "dvbsub", - .long_name = NULL_IF_CONFIG_SMALL("DVB subtitles"), - .type = AVMEDIA_TYPE_SUBTITLE, - .id = AV_CODEC_ID_DVB_SUBTITLE, +const FFCodec ff_dvbsub_encoder = { + .p.name = "dvbsub", + .p.long_name = NULL_IF_CONFIG_SMALL("DVB subtitles"), + .p.type = AVMEDIA_TYPE_SUBTITLE, + .p.id = AV_CODEC_ID_DVB_SUBTITLE, .priv_data_size = sizeof(DVBSubtitleContext), .encode_sub = dvbsub_encode, }; |