@@ -81,13 +81,16 @@ static int mpl2_decode_frame(AVCodecContext *avctx, void *data,
return avpkt->size;
}
+ASS_GENERIC_CLASS(mpl2, MPL2)
+
AVCodec ff_mpl2_decoder = {
.name = "mpl2",
.long_name = NULL_IF_CONFIG_SMALL("MPL2 subtitle"),
.type = AVMEDIA_TYPE_SUBTITLE,
.id = AV_CODEC_ID_MPL2,
.decode = mpl2_decode_frame,
- .init = ff_ass_subtitle_header_default,
+ .init = ff_ass_subtitle_header_options,
.flush = ff_ass_decoder_flush,
.priv_data_size = sizeof(FFASSDecoderContext),
+ .priv_class = &mpl2_decoder_class,
};