Lines Matching defs:avctx
66 static av_cold int ra288_decode_init(AVCodecContext *avctx)
68 RA288Context *ractx = avctx->priv_data;
71 av_channel_layout_uninit(&avctx->ch_layout);
72 avctx->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO;
73 avctx->sample_fmt = AV_SAMPLE_FMT_FLT;
75 if (avctx->block_align != 38) {
76 av_log(avctx, AV_LOG_ERROR, "unsupported block align\n");
80 fdsp = avpriv_float_dsp_alloc(avctx->flags & AV_CODEC_FLAG_BITEXACT);
190 static int ra288_decode_frame(AVCodecContext * avctx, AVFrame *frame,
197 RA288Context *ractx = avctx->priv_data;
200 if (buf_size < avctx->block_align) {
201 av_log(avctx, AV_LOG_ERROR,
203 buf_size, avctx->block_align);
207 ret = init_get_bits8(&gb, buf, avctx->block_align);
213 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
237 return avctx->block_align;