diff mbox series

[FFmpeg-devel,05/13] lavc/realtextdec: add support for configuring default style via AVOptions

Message ID 20200125020200.2049-5-rcombs@rcombs.me
State New
Headers show
Series [FFmpeg-devel,01/13] lavc/ass: realign ff_ass_subtitle_header_default | expand

Checks

Context Check Description
andriy/ffmpeg-patchwork success Make fate finished

Commit Message

Ridley Combs Jan. 25, 2020, 2:01 a.m. UTC
---
 libavcodec/realtextdec.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libavcodec/realtextdec.c b/libavcodec/realtextdec.c
index 5084781123..e888946f13 100644
--- a/libavcodec/realtextdec.c
+++ b/libavcodec/realtextdec.c
@@ -74,13 +74,16 @@  static int realtext_decode_frame(AVCodecContext *avctx,
     return avpkt->size;
 }
 
+ASS_GENERIC_CLASS(realtext, RealText)
+
 AVCodec ff_realtext_decoder = {
     .name           = "realtext",
     .long_name      = NULL_IF_CONFIG_SMALL("RealText subtitle"),
     .type           = AVMEDIA_TYPE_SUBTITLE,
     .id             = AV_CODEC_ID_REALTEXT,
     .decode         = realtext_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     = &realtext_decoder_class,
 };