Lines Matching defs:avctx
33 static int sbc_parse_header(AVCodecParserContext *s, AVCodecContext *avctx,
44 av_channel_layout_uninit(&avctx->ch_layout);
45 avctx->ch_layout.order = AV_CHANNEL_ORDER_UNSPEC;
46 avctx->ch_layout.nb_channels = 1;
47 avctx->sample_rate = 16000;
48 avctx->frame_size = 120;
49 s->duration = avctx->frame_size;
69 av_channel_layout_uninit(&avctx->ch_layout);
70 avctx->ch_layout.order = AV_CHANNEL_ORDER_UNSPEC;
71 avctx->ch_layout.nb_channels = channels;
72 avctx->sample_rate = sample_rates[sr];
73 avctx->frame_size = subbands * blocks;
74 s->duration = avctx->frame_size;
78 static int sbc_parse(AVCodecParserContext *s, AVCodecContext *avctx,
91 next = sbc_parse_header(s, avctx, pc->header, sizeof(pc->header))
95 next = sbc_parse_header(s, avctx, buf, buf_size);