X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fmdec.c;h=cf606935a6468586bb66d6f6794c07a7541d649e;hb=4920a1a913b3baeecbbc28759d22011826b54b50;hp=5f540f05f2d49e03008f331795aafe392a8848b7;hpb=976a8b217986fecdbe1fdcaa3e14ce9c3c92eb25;p=ffmpeg diff --git a/libavcodec/mdec.c b/libavcodec/mdec.c index 5f540f05f2d..cf606935a64 100644 --- a/libavcodec/mdec.c +++ b/libavcodec/mdec.c @@ -267,15 +267,14 @@ static av_cold int decode_end(AVCodecContext *avctx){ } AVCodec ff_mdec_decoder = { - "mdec", - AVMEDIA_TYPE_VIDEO, - CODEC_ID_MDEC, - sizeof(MDECContext), - decode_init, - NULL, - decode_end, - decode_frame, - CODEC_CAP_DR1 | CODEC_CAP_FRAME_THREADS, + .name = "mdec", + .type = AVMEDIA_TYPE_VIDEO, + .id = CODEC_ID_MDEC, + .priv_data_size = sizeof(MDECContext), + .init = decode_init, + .close = decode_end, + .decode = decode_frame, + .capabilities = CODEC_CAP_DR1 | CODEC_CAP_FRAME_THREADS, .long_name= NULL_IF_CONFIG_SMALL("Sony PlayStation MDEC (Motion DECoder)"), .init_thread_copy= ONLY_IF_THREADS_ENABLED(decode_init_thread_copy) };