Lines Matching defs:par
3861 static int mxf_set_audio_pts(MXFContext *mxf, AVCodecParameters *par,
3866 int64_t bits_per_sample = par->bits_per_coded_sample;
3869 bits_per_sample = av_get_bits_per_sample(par->codec_id);
3873 if (par->ch_layout.nb_channels <= 0 ||
3875 par->ch_layout.nb_channels * (int64_t)bits_per_sample < 8)
3878 track->sample_count += pkt->size / (par->ch_layout.nb_channels * (int64_t)bits_per_sample / 8);
3885 AVCodecParameters *par = st->codecpar;
3888 if (par->codec_type == AVMEDIA_TYPE_VIDEO) {
3901 } else if (par->codec_type == AVMEDIA_TYPE_AUDIO) {
3902 int ret = mxf_set_audio_pts(mxf, par, pkt);