Lines Matching defs:par
45 AVCodecParameters *par;
53 par = st->codecpar;
55 par->codec_type = AVMEDIA_TYPE_AUDIO;
56 par->codec_id = s->iformat->raw_codec_id;
57 par->sample_rate = s1->sample_rate;
61 ret = av_channel_layout_copy(&par->ch_layout, &s1->ch_layout);
66 par->ch_layout.nb_channels = s1->channels;
94 par->sample_rate = rate;
96 av_channel_layout_uninit(&par->ch_layout);
97 par->ch_layout.nb_channels = channels;
100 par->codec_id = AV_CODEC_ID_PCM_S16LE;
105 par->bits_per_coded_sample = av_get_bits_per_sample(par->codec_id);
107 av_assert0(par->bits_per_coded_sample > 0);
109 par->block_align = par->bits_per_coded_sample * par->ch_layout.nb_channels / 8;
111 avpriv_set_pts_info(st, 64, 1, par->sample_rate);