Lines Matching defs:avctx
73 AVCodecContext *avctx;
166 static int mov_text_encode_close(AVCodecContext *avctx)
168 MovTextContext *s = avctx->priv_data;
177 static int encode_sample_description(AVCodecContext *avctx)
184 MovTextContext *s = avctx->priv_data;
312 avctx->extradata_size = s->buffer.len;
313 avctx->extradata = av_mallocz(avctx->extradata_size + AV_INPUT_BUFFER_PADDING_SIZE);
314 if (!avctx->extradata) {
318 memcpy(avctx->extradata, s->buffer.str, avctx->extradata_size);
324 static av_cold int mov_text_encode_init(AVCodecContext *avctx)
327 MovTextContext *s = avctx->priv_data;
328 s->avctx = avctx;
332 s->ass_ctx = ff_ass_split(avctx->subtitle_header);
335 ret = encode_sample_description(avctx);
636 static int mov_text_encode_frame(AVCodecContext *avctx, unsigned char *buf,
639 MovTextContext *s = avctx->priv_data;
651 av_log(avctx, AV_LOG_ERROR, "Only SUBTITLE_ASS type supported.\n");
678 av_log(avctx, AV_LOG_ERROR, "Buffer too small for ASS event.\n");