Lines Matching defs:avctx
227 static av_cold int mace_decode_init(AVCodecContext * avctx)
229 if (avctx->ch_layout.nb_channels > 2 || avctx->ch_layout.nb_channels < 1)
231 avctx->sample_fmt = AV_SAMPLE_FMT_S16P;
236 static int mace_decode_frame(AVCodecContext *avctx, AVFrame *frame,
241 int channels = avctx->ch_layout.nb_channels;
243 MACEContext *ctx = avctx->priv_data;
245 int is_mace3 = (avctx->codec_id == AV_CODEC_ID_MACE3);
248 av_log(avctx, AV_LOG_ERROR, "buffer size %d is odd\n", buf_size);
256 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)