Lines Matching defs:avctx
1359 static int ilbc_decode_frame(AVCodecContext *avctx, AVFrame *frame,
1363 ILBCContext *s = avctx->priv_data;
1372 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
1446 static av_cold int ilbc_decode_init(AVCodecContext *avctx)
1448 ILBCContext *s = avctx->priv_data;
1450 if (avctx->block_align == 38)
1452 else if (avctx->block_align == 50)
1454 else if (avctx->bit_rate > 0)
1455 s->mode = avctx->bit_rate <= 14000 ? 30 : 20;
1459 av_channel_layout_uninit(&avctx->ch_layout);
1460 avctx->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO;
1461 avctx->sample_rate = 8000;
1462 avctx->sample_fmt = AV_SAMPLE_FMT_S16;