Lines Matching defs:avctx
40 AVCodecContext *avctx = r->s.avctx;
59 av_log(avctx, AV_LOG_ERROR, "rpr too large\n");
63 if (avctx->extradata_size < rpr * 2 + 8) {
64 av_log(avctx, AV_LOG_ERROR,
66 8 + rpr * 2, avctx->extradata_size);
70 w = r->s.avctx->extradata[6 + rpr*2] << 2;
71 h = r->s.avctx->extradata[7 + rpr*2] << 2;
96 av_log(r->s.avctx, AV_LOG_ERROR, "Incorrect intra prediction code\n");
104 av_log(r->s.avctx, AV_LOG_ERROR, "Incorrect intra prediction mode\n");
125 av_log(s->avctx, AV_LOG_ERROR, "Incorrect MB type code\n");
129 av_log(s->avctx, AV_LOG_ERROR, "dquant needed\n");
262 static av_cold int rv30_decode_init(AVCodecContext *avctx)
264 RV34DecContext *r = avctx->priv_data;
267 r->orig_width = avctx->coded_width;
268 r->orig_height = avctx->coded_height;
270 if (avctx->extradata_size < 2) {
271 av_log(avctx, AV_LOG_ERROR, "Extradata is too small.\n");
275 if ((ret = ff_rv34_decode_init(avctx)) < 0)
278 r->max_rpr = avctx->extradata[1] & 7;
279 if(avctx->extradata_size < 2*r->max_rpr + 8){
280 av_log(avctx, AV_LOG_WARNING, "Insufficient extradata - need at least %d bytes, got %d\n",
281 2*r->max_rpr + 8, avctx->extradata_size);