Lines Matching refs:avctx
37 static av_cold int adx_decode_init(AVCodecContext *avctx)
39 ADXContext *c = avctx->priv_data;
42 if (avctx->extradata_size >= 24) {
43 if ((ret = ff_adx_decode_header(avctx, avctx->extradata,
44 avctx->extradata_size, &header_size,
46 av_log(avctx, AV_LOG_ERROR, "error parsing ADX header\n");
49 c->channels = avctx->channels;
53 avctx->sample_fmt = AV_SAMPLE_FMT_S16P;
95 static int adx_decode_frame(AVCodecContext *avctx, void *data,
100 ADXContext *c = avctx->priv_data;
114 if ((ret = ff_adx_decode_header(avctx, buf, buf_size, &header_size,
116 av_log(avctx, AV_LOG_ERROR, "error parsing ADX header\n");
119 c->channels = avctx->channels;
134 if (!num_blocks || buf_size % (BLOCK_SIZE * avctx->channels)) {
145 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
170 static void adx_decode_flush(AVCodecContext *avctx)
172 ADXContext *c = avctx->priv_data;