Lines Matching defs:avctx
141 static av_cold int mpc8_decode_init(AVCodecContext * avctx)
144 MPCContext *c = avctx->priv_data;
148 if(avctx->extradata_size < 2){
149 av_log(avctx, AV_LOG_ERROR, "Too small extradata size (%i)!\n", avctx->extradata_size);
156 init_get_bits(&gb, avctx->extradata, 16);
161 av_log(avctx,AV_LOG_ERROR, "maxbands %d too high\n", c->maxbands);
166 avpriv_request_sample(avctx, "Multichannel MPC SV8");
172 avctx->sample_fmt = AV_SAMPLE_FMT_S16P;
173 av_channel_layout_uninit(&avctx->ch_layout);
174 av_channel_layout_default(&avctx->ch_layout, channels);
181 static int mpc8_decode_frame(AVCodecContext *avctx, AVFrame *frame,
186 MPCContext *c = avctx->priv_data;
218 av_log(avctx, AV_LOG_ERROR, "maxband %d too large\n",maxband);
356 if ((res = ff_get_buffer(avctx, frame, 0)) < 0)
361 avctx->ch_layout.nb_channels);
369 av_log(avctx, AV_LOG_ERROR, "Overread %d\n", -get_bits_left(gb));
380 static av_cold void mpc8_decode_flush(AVCodecContext *avctx)
382 MPCContext *c = avctx->priv_data;