[FFmpeg-devel] [PATCH 06/13] lavc/jacosubdec: add support for configuring default style via AVOptions
rcombs
rcombs at rcombs.me
Sat Jan 25 04:01:53 EET 2020
---
libavcodec/jacosubdec.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/libavcodec/jacosubdec.c b/libavcodec/jacosubdec.c
index cdb372af58..b0d8327b35 100644
--- a/libavcodec/jacosubdec.c
+++ b/libavcodec/jacosubdec.c
@@ -193,13 +193,16 @@ end:
return avpkt->size;
}
+ASS_GENERIC_CLASS(jacosub, JACOsub)
+
AVCodec ff_jacosub_decoder = {
.name = "jacosub",
.long_name = NULL_IF_CONFIG_SMALL("JACOsub subtitle"),
.type = AVMEDIA_TYPE_SUBTITLE,
.id = AV_CODEC_ID_JACOSUB,
- .init = ff_ass_subtitle_header_default,
+ .init = ff_ass_subtitle_header_options,
.decode = jacosub_decode_frame,
.flush = ff_ass_decoder_flush,
.priv_data_size = sizeof(FFASSDecoderContext),
+ .priv_class = &jacosub_decoder_class,
};
--
2.24.1
More information about the ffmpeg-devel
mailing list