@@ -85,6 +85,8 @@ static int srt_decode_frame(AVCodecContext *avctx,
return avpkt->size;
}
+ASS_GENERIC_CLASS(srt, SubRip)
+
#if CONFIG_SRT_DECODER
/* deprecated decoder */
AVCodec ff_srt_decoder = {
@@ -96,18 +98,22 @@ AVCodec ff_srt_decoder = {
.decode = srt_decode_frame,
.flush = ff_ass_decoder_flush,
.priv_data_size = sizeof(FFASSDecoderContext),
+ .priv_class = &srt_decoder_class,
};
#endif
+ASS_GENERIC_CLASS(subrip, SubRip)
+
#if CONFIG_SUBRIP_DECODER
AVCodec ff_subrip_decoder = {
.name = "subrip",
.long_name = NULL_IF_CONFIG_SMALL("SubRip subtitle"),
.type = AVMEDIA_TYPE_SUBTITLE,
.id = AV_CODEC_ID_SUBRIP,
- .init = ff_ass_subtitle_header_default,
+ .init = ff_ass_subtitle_header_options,
.decode = srt_decode_frame,
.flush = ff_ass_decoder_flush,
.priv_data_size = sizeof(FFASSDecoderContext),
+ .priv_class = &subrip_decoder_class,
};
#endif