diff options
Diffstat (limited to 'libavcodec/textdec.c')
-rw-r--r-- | libavcodec/textdec.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/libavcodec/textdec.c b/libavcodec/textdec.c index 32af644..9b97bac 100644 --- a/libavcodec/textdec.c +++ b/libavcodec/textdec.c @@ -128,7 +128,7 @@ AVCodec ff_text_decoder = { }; #endif -#if CONFIG_VPLAYER_DECODER || CONFIG_PJS_DECODER +#if CONFIG_VPLAYER_DECODER || CONFIG_PJS_DECODER || CONFIG_TEXT_DECODER static int linebreak_init(AVCodecContext *avctx) { @@ -169,4 +169,20 @@ AVCodec ff_pjs_decoder = { }; #endif +#if CONFIG_SUBVIEWER1_DECODER +#define subviewer1_options options +DECLARE_CLASS(subviewer1); + +AVCodec ff_subviewer1_decoder = { + .name = "subviewer1", + .priv_data_size = sizeof(TextContext), + .long_name = NULL_IF_CONFIG_SMALL("SubViewer1 subtitle"), + .type = AVMEDIA_TYPE_SUBTITLE, + .id = AV_CODEC_ID_SUBVIEWER1, + .decode = text_decode_frame, + .init = linebreak_init, + .priv_class = &subviewer1_decoder_class, +}; +#endif + #endif /* text subtitles with '|' line break */ |