Lines Matching refs:par
71 int ff_rtp_get_codec_info(AVCodecParameters *par, int payload_type)
78 par->codec_type = rtp_payload_types[i].codec_type;
79 par->codec_id = rtp_payload_types[i].codec_id;
81 av_channel_layout_uninit(&par->ch_layout);
82 par->ch_layout.order = AV_CHANNEL_ORDER_UNSPEC;
83 par->ch_layout.nb_channels = rtp_payload_types[i].audio_channels;
86 par->sample_rate = rtp_payload_types[i].clock_rate;
94 const AVCodecParameters *par, int idx)
109 if (rtp_payload_types[i].codec_id == par->codec_id) {
110 if (par->codec_id == AV_CODEC_ID_H263 && (!fmt || !fmt->oformat ||
116 if (par->codec_id == AV_CODEC_ID_ADPCM_G722 &&
117 par->sample_rate == 16000 && par->ch_layout.nb_channels == 1)
119 if (par->codec_type == AVMEDIA_TYPE_AUDIO &&
121 par->sample_rate != rtp_payload_types[i].clock_rate) ||
123 par->ch_layout.nb_channels != rtp_payload_types[i].audio_channels)))
129 idx = par->codec_type == AVMEDIA_TYPE_AUDIO;