Lines Matching defs:avctx
35 static av_cold int decode_init(AVCodecContext *avctx)
37 DVAudioContext *s = avctx->priv_data;
40 if (avctx->codec_tag == 0x0215) {
42 } else if (avctx->codec_tag == 0x0216) {
44 } else if (avctx->block_align == 7200 ||
45 avctx->block_align == 8640) {
46 s->block_size = avctx->block_align;
52 s->is_12bit = avctx->bits_per_coded_sample == 12;
53 avctx->sample_fmt = AV_SAMPLE_FMT_S16;
54 av_channel_layout_uninit(&avctx->ch_layout);
55 avctx->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_STEREO;
88 static int decode_frame(AVCodecContext *avctx, AVFrame *frame,
91 DVAudioContext *s = avctx->priv_data;
100 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)