@@ -65,13 +65,16 @@ static int subviewer_decode_frame(AVCodecContext *avctx,
return avpkt->size;
}
+ASS_GENERIC_CLASS(subviewer, SubViewer)
+
AVCodec ff_subviewer_decoder = {
.name = "subviewer",
.long_name = NULL_IF_CONFIG_SMALL("SubViewer subtitle"),
.type = AVMEDIA_TYPE_SUBTITLE,
.id = AV_CODEC_ID_SUBVIEWER,
.decode = subviewer_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 = &subviewer_decoder_class,
};