Lines Matching refs:avctx
50 AVCodecContext* avctx;
116 static av_cold int decode_init(AVCodecContext * avctx) {
117 NellyMoserDecodeContext *s = avctx->priv_data;
119 s->avctx = avctx;
125 avpriv_float_dsp_init(&s->fdsp, avctx->flags & CODEC_FLAG_BITEXACT);
128 avctx->sample_fmt = AV_SAMPLE_FMT_FLT;
134 avctx->channels = 1;
135 avctx->channel_layout = AV_CH_LAYOUT_MONO;
140 static int decode_tag(AVCodecContext *avctx, void *data,
147 NellyMoserDecodeContext *s = avctx->priv_data;
154 av_log(avctx, AV_LOG_ERROR, "Packet is too small\n");
159 av_log(avctx, AV_LOG_WARNING, "Leftover bytes: %d.\n",
169 if(side && blocks>1 && avctx->sample_rate%11025==0 && (1<<((side[0]>>2)&3)) == blocks)
170 avctx->sample_rate= 11025*(blocks/2);
174 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
189 static av_cold int decode_end(AVCodecContext * avctx) {
190 NellyMoserDecodeContext *s = avctx->priv_data;