Lines Matching defs:avctx
36 AVCodecContext *avctx;
94 av_log(s->avctx, AV_LOG_ERROR, "tag stack overflow\n");
136 static av_cold int srt_encode_init(AVCodecContext *avctx)
138 SRTContext *s = avctx->priv_data;
139 s->avctx = avctx;
140 s->ass_ctx = ff_ass_split(avctx->subtitle_header);
232 static int encode_frame(AVCodecContext *avctx,
236 SRTContext *s = avctx->priv_data;
246 av_log(avctx, AV_LOG_ERROR, "Only SUBTITLE_ASS type supported.\n");
254 if (avctx->codec_id == AV_CODEC_ID_SUBRIP)
266 av_log(avctx, AV_LOG_ERROR, "Buffer too small for ASS event.\n");
274 static int srt_encode_frame(AVCodecContext *avctx,
277 return encode_frame(avctx, buf, bufsize, sub, &srt_callbacks);
280 static int text_encode_frame(AVCodecContext *avctx,
283 return encode_frame(avctx, buf, bufsize, sub, &text_callbacks);
286 static int srt_encode_close(AVCodecContext *avctx)
288 SRTContext *s = avctx->priv_data;