Lines Matching defs:avctx
38 int ff_adx_decode_header(AVCodecContext *avctx, const uint8_t *buf,
56 avpriv_request_sample(avctx, "Support for this ADX format");
65 if (avctx->ch_layout.nb_channels != channels) {
66 av_channel_layout_uninit(&avctx->ch_layout);
67 avctx->ch_layout.order = AV_CHANNEL_ORDER_UNSPEC;
68 avctx->ch_layout.nb_channels = channels;
72 avctx->sample_rate = AV_RB32(buf + 8);
73 if (avctx->sample_rate < 1 ||
74 avctx->sample_rate > INT_MAX / (channels * BLOCK_SIZE * 8))
78 avctx->bit_rate = avctx->sample_rate * channels * BLOCK_SIZE * 8 / BLOCK_SAMPLES;
83 ff_adx_calculate_coeffs(cutoff, avctx->sample_rate, COEFF_BITS, coeff);