Lines Matching refs:codecpar
50 st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; in apc_read_header()
51 st->codecpar->codec_id = AV_CODEC_ID_ADPCM_IMA_APC; in apc_read_header()
54 st->codecpar->sample_rate = avio_rl32(pb); in apc_read_header()
57 if ((ret = ff_get_extradata(s, st->codecpar, pb, 2 * 4)) < 0) in apc_read_header()
61 st->codecpar->channels = 2; in apc_read_header()
62 st->codecpar->channel_layout = AV_CH_LAYOUT_STEREO; in apc_read_header()
64 st->codecpar->channels = 1; in apc_read_header()
65 st->codecpar->channel_layout = AV_CH_LAYOUT_MONO; in apc_read_header()
68 st->codecpar->bits_per_coded_sample = 4; in apc_read_header()
69 st->codecpar->bit_rate = (int64_t)st->codecpar->bits_per_coded_sample * st->codecpar->channels in apc_read_header()
70 * st->codecpar->sample_rate; in apc_read_header()
71 st->codecpar->block_align = 1; in apc_read_header()