Lines Matching defs:par
212 AVCodecParameters *const par = st->codecpar;
217 if (par->codec_type == AVMEDIA_TYPE_AUDIO && par->sample_rate)
218 avpriv_set_pts_info(st, 64, 1, par->sample_rate);
223 switch (par->codec_type) {
225 if (par->sample_rate <= 0) {
235 if (!par->ch_layout.nb_channels &&
236 par->channels) {
237 if (par->channel_layout) {
238 av_channel_layout_from_mask(&par->ch_layout, par->channel_layout);
240 par->ch_layout.order = AV_CHANNEL_ORDER_UNSPEC;
241 par->ch_layout.nb_channels = par->channels;
247 if (!par->block_align)
248 par->block_align = par->ch_layout.nb_channels *
249 av_get_bits_per_sample(par->codec_id) >> 3;
252 if ((par->width <= 0 || par->height <= 0) &&
258 if (av_cmp_q(st->sample_aspect_ratio, par->sample_aspect_ratio)
259 && fabs(av_q2d(st->sample_aspect_ratio) - av_q2d(par->sample_aspect_ratio)) > 0.004*av_q2d(st->sample_aspect_ratio)
263 par->sample_aspect_ratio.num != 0 &&
264 par->sample_aspect_ratio.den != 0) {
268 par->sample_aspect_ratio.num,
269 par->sample_aspect_ratio.den);
277 desc = avcodec_descriptor_get(par->codec_id);
281 sti->is_intra_only = ff_is_intra_only(par->codec_id);
284 if ( par->codec_tag
285 && par->codec_id == AV_CODEC_ID_RAWVIDEO
286 && ( av_codec_get_tag(of->codec_tag, par->codec_id) == 0
287 || av_codec_get_tag(of->codec_tag, par->codec_id) == MKTAG('r', 'a', 'w', ' '))
291 par->codec_tag = 0;
293 if (par->codec_tag) {
295 const uint32_t otag = av_codec_get_tag(s->oformat->codec_tag, par->codec_id);
298 av_fourcc2str(par->codec_tag), par->codec_id, av_fourcc2str(otag));
303 par->codec_tag = av_codec_get_tag(of->codec_tag, par->codec_id);
306 if (par->codec_type != AVMEDIA_TYPE_ATTACHMENT)
940 const AVCodecParameters *const par = st->codecpar;
943 } else if (par->codec_type != AVMEDIA_TYPE_ATTACHMENT &&
944 par->codec_id != AV_CODEC_ID_VP8 &&
945 par->codec_id != AV_CODEC_ID_VP9) {