diff options
author | Eejya Singh <singh.eejya@gmail.com> | 2014-10-21 01:55:39 +0530 |
---|---|---|
committer | Clément Bœsch <u@pkh.me> | 2014-10-22 23:12:38 +0200 |
commit | 6dc99fdf0e4328ca2992b7bfcd139f7b1b636bf8 (patch) | |
tree | 85e41b861fcb0fb4b0b32411fe383e99173c7326 /libavcodec/textdec.c | |
parent | 27c61c32cee4d4944da15226b56901926136214f (diff) | |
download | ffmpeg-6dc99fdf0e4328ca2992b7bfcd139f7b1b636bf8.tar.gz |
Added STL demuxer and decoder
Signed-off-by: Clément Bœsch <u@pkh.me>
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 611fcc8bf2..c9f02a2a4c 100644 --- a/libavcodec/textdec.c +++ b/libavcodec/textdec.c @@ -88,7 +88,7 @@ AVCodec ff_text_decoder = { }; #endif -#if CONFIG_VPLAYER_DECODER || CONFIG_PJS_DECODER || CONFIG_SUBVIEWER1_DECODER +#if CONFIG_VPLAYER_DECODER || CONFIG_PJS_DECODER || CONFIG_SUBVIEWER1_DECODER || CONFIG_STL_DECODER static int linebreak_init(AVCodecContext *avctx) { @@ -113,6 +113,22 @@ AVCodec ff_vplayer_decoder = { }; #endif +#if CONFIG_STL_DECODER +#define stl_options options +DECLARE_CLASS(stl); + +AVCodec ff_stl_decoder = { + .name = "stl", + .long_name = NULL_IF_CONFIG_SMALL("Spruce subtitle format"), + .priv_data_size = sizeof(TextContext), + .type = AVMEDIA_TYPE_SUBTITLE, + .id = AV_CODEC_ID_STL, + .decode = text_decode_frame, + .init = linebreak_init, + .priv_class = &stl_decoder_class, +}; +#endif + #if CONFIG_PJS_DECODER #define pjs_options options DECLARE_CLASS(pjs); |