Lines Matching defs:avctx
38 static av_cold int adx_decode_init(AVCodecContext *avctx)
40 ADXContext *c = avctx->priv_data;
43 if (avctx->extradata_size >= 24) {
44 if ((ret = ff_adx_decode_header(avctx, avctx->extradata,
45 avctx->extradata_size, &header_size,
47 av_log(avctx, AV_LOG_ERROR, "error parsing ADX header\n");
50 c->channels = avctx->ch_layout.nb_channels;
54 avctx->sample_fmt = AV_SAMPLE_FMT_S16P;
96 static int adx_decode_frame(AVCodecContext *avctx, AVFrame *frame,
100 ADXContext *c = avctx->priv_data;
113 if ((ret = ff_adx_decode_header(avctx, new_extradata,
116 av_log(avctx, AV_LOG_ERROR, "error parsing new ADX extradata\n");
130 if ((ret = ff_adx_decode_header(avctx, buf, buf_size, &header_size,
132 av_log(avctx, AV_LOG_ERROR, "error parsing ADX header\n");
135 c->channels = avctx->ch_layout.nb_channels;
161 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
186 static void adx_decode_flush(AVCodecContext *avctx)
188 ADXContext *c = avctx->priv_data;