Lines Matching refs:codecpar
58 st->codecpar->codec_type = AVMEDIA_TYPE_VIDEO;
61 st->codecpar->codec_id = ff_codec_get_id(ff_codec_bmp_tags, tag);
62 st->codecpar->codec_tag = tag;
63 if (st->codecpar->codec_id == AV_CODEC_ID_MPEG4)
66 st->codecpar->codec_type = AVMEDIA_TYPE_SUBTITLE;
67 st->codecpar->codec_id = AV_CODEC_ID_TEXT;
72 st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
77 st->codecpar->codec_id = ff_codec_get_id(ff_codec_wav_tags, cid);
79 if (st->codecpar->codec_id != AV_CODEC_ID_AAC)
95 if(st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO){
96 st->codecpar->width = bytestream2_get_le32(&p);
97 st->codecpar->height = bytestream2_get_le32(&p);
100 st->codecpar->ch_layout.nb_channels = bytestream2_get_le16(&p);
102 st->codecpar->bit_rate = bytestream2_get_le32(&p) * 8;
103 st->codecpar->sample_rate = spu * 10000000 / time_unit;
104 avpriv_set_pts_info(st, 64, 1, st->codecpar->sample_rate);
105 if (size >= 56 && st->codecpar->codec_id == AV_CODEC_ID_AAC) {
113 if ((ret = ff_alloc_extradata(st->codecpar, size)) < 0)
115 bytestream2_get_buffer(&p, st->codecpar->extradata, st->codecpar->extradata_size);
119 // Update internal avctx with changes to codecpar above.
152 st->codecpar->codec_type = AVMEDIA_TYPE_VIDEO;
153 st->codecpar->codec_id = ff_codec_get_id(ff_codec_bmp_tags, AV_RL32(p + 68));
155 st->codecpar->width = AV_RL32(p + 176);
156 st->codecpar->height = AV_RL32(p + 180);
161 st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
162 st->codecpar->codec_id = ff_codec_get_id(ff_codec_wav_tags, AV_RL16(p + 124));
163 st->codecpar->ch_layout.nb_channels = AV_RL16(p + 126);
164 st->codecpar->sample_rate = AV_RL32(p + 128);
165 st->codecpar->bit_rate = AV_RL32(p + 132) * 8;