Lines Matching refs:avctx
38 static av_cold int mov_text_encode_init(AVCodecContext *avctx)
75 MovTextContext *s = avctx->priv_data;
77 avctx->extradata_size = sizeof text_sample_entry;
78 avctx->extradata = av_mallocz(avctx->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE);
79 if (!avctx->extradata)
82 memcpy(avctx->extradata, text_sample_entry, avctx->extradata_size);
84 s->ass_ctx = ff_ass_split(avctx->subtitle_header);
110 static int mov_text_encode_frame(AVCodecContext *avctx, unsigned char *buf,
113 MovTextContext *s = avctx->priv_data;
123 av_log(avctx, AV_LOG_ERROR, "Only SUBTITLE_ASS type supported.\n");
142 av_log(avctx, AV_LOG_ERROR, "Buffer too small for ASS event.\n");
149 static int mov_text_encode_close(AVCodecContext *avctx)
151 MovTextContext *s = avctx->priv_data;