diff mbox series

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

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

Checks

Context Check Description
andriy/ffmpeg-patchwork pending
andriy/ffmpeg-patchwork success Applied patch
andriy/ffmpeg-patchwork success Configure finished
andriy/ffmpeg-patchwork success Make finished
andriy/ffmpeg-patchwork success Make fate finished

Commit Message

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

Patch

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,
 };