Lines Matching refs:avctx
49 AVCodecContext* avctx;
118 static av_cold int decode_init(AVCodecContext * avctx) {
119 NellyMoserDecodeContext *s = avctx->priv_data;
121 s->avctx = avctx;
125 dsputil_init(&s->dsp, avctx);
127 if (avctx->request_sample_fmt == AV_SAMPLE_FMT_FLT) {
129 avctx->sample_fmt = AV_SAMPLE_FMT_FLT;
132 avctx->sample_fmt = AV_SAMPLE_FMT_S16;
133 ff_fmt_convert_init(&s->fmt_conv, avctx);
136 av_log(avctx, AV_LOG_ERROR, "error allocating float buffer\n");
145 avctx->channel_layout = AV_CH_LAYOUT_MONO;
148 avctx->coded_frame = &s->frame;
153 static int decode_tag(AVCodecContext *avctx, void *data,
158 NellyMoserDecodeContext *s = avctx->priv_data;
165 av_log(avctx, AV_LOG_ERROR, "Packet is too small\n");
169 av_log(avctx, AV_LOG_WARNING, "Leftover bytes: %d.\n",
182 if ((ret = avctx->get_buffer(avctx, &s->frame)) < 0) {
183 av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
190 if (avctx->sample_fmt == AV_SAMPLE_FMT_FLT) {
207 static av_cold int decode_end(AVCodecContext * avctx) {
208 NellyMoserDecodeContext *s = avctx->priv_data;