static av_cold int sami_init(AVCodecContext *avctx) { SAMIContext *sami = avctx->priv_data; av_bprint_init(&sami->source, 0, 2048); av_bprint_init(&sami->content, 0, 2048); av_bprint_init(&sami->full, 0, 2048); return ff_ass_subtitle_header_default(avctx); }
static int mov_text_init(AVCodecContext *avctx) { /* * TODO: Handle the default text style. * NB: Most players ignore styles completely, with the result that * it's very common to find files where the default style is broken * and respecting it results in a worse experience than ignoring it. */ return ff_ass_subtitle_header_default(avctx); }
static int mov_text_init(AVCodecContext *avctx) { /* * TODO: Handle the default text style. * NB: Most players ignore styles completely, with the result that * it's very common to find files where the default style is broken * and respecting it results in a worse experience than ignoring it. */ int ret; MovTextContext *m = avctx->priv_data; ret = mov_text_tx3g(avctx, m); if (ret == 0) { return ff_ass_subtitle_header(avctx, m->d.font, m->d.fontsize, m->d.color, m->d.back_color, m->d.bold, m->d.italic, m->d.underline, m->d.alignment); } else return ff_ass_subtitle_header_default(avctx); }