Lines Matching defs:avctx
90 static int get_stats(AVCodecContext *avctx, int eos)
93 TheoraContext *h = avctx->priv_data;
99 av_log(avctx, AV_LOG_ERROR, "Error getting first pass stats\n");
114 avctx->stats_out = av_malloc(b64_size);
115 if (!avctx->stats_out)
117 av_base64_encode(avctx->stats_out, b64_size, h->stats, h->stats_offset);
121 av_log(avctx, AV_LOG_ERROR, "libtheora too old to support 2pass\n");
128 static int submit_stats(AVCodecContext *avctx)
131 TheoraContext *h = avctx->priv_data;
134 if (!avctx->stats_in) {
135 av_log(avctx, AV_LOG_ERROR, "No statsfile for second pass\n");
138 h->stats_size = strlen(avctx->stats_in) * 3/4;
144 h->stats_size = av_base64_decode(h->stats, avctx->stats_in, h->stats_size);
151 av_log(avctx, AV_LOG_ERROR, "Error submitting stats\n");
160 av_log(avctx, AV_LOG_ERROR, "libtheora too old to support 2pass\n");