Lines Matching refs:codec
46 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
47 st->codec->codec_id = CODEC_ID_ADPCM_IMA_WS;
50 st->codec->sample_rate = get_le32(pb);
52 st->codec->extradata_size = 2 * 4;
53 st->codec->extradata = av_malloc(st->codec->extradata_size +
55 if (!st->codec->extradata)
59 get_buffer(pb, st->codec->extradata, 2 * 4);
61 st->codec->channels = 1;
63 st->codec->channels = 2;
65 st->codec->bits_per_coded_sample = 4;
66 st->codec->bit_rate = st->codec->bits_per_coded_sample * st->codec->channels
67 * st->codec->sample_rate;
68 st->codec->block_align = 1;