Lines Matching refs:rtp_payload_types
41 } rtp_payload_types[] = {
75 for (i = 0; rtp_payload_types[i].pt >= 0; i++)
76 if (rtp_payload_types[i].pt == payload_type) {
77 if (rtp_payload_types[i].codec_id != AV_CODEC_ID_NONE) {
78 codec->codec_type = rtp_payload_types[i].codec_type;
79 codec->codec_id = rtp_payload_types[i].codec_id;
80 if (rtp_payload_types[i].audio_channels > 0)
81 codec->channels = rtp_payload_types[i].audio_channels;
82 if (rtp_payload_types[i].clock_rate > 0)
83 codec->sample_rate = rtp_payload_types[i].clock_rate;
105 for (i = 0; rtp_payload_types[i].pt >= 0; ++i)
106 if (rtp_payload_types[i].codec_id == codec->codec_id) {
115 return rtp_payload_types[i].pt;
117 ((rtp_payload_types[i].clock_rate > 0 &&
118 codec->sample_rate != rtp_payload_types[i].clock_rate) ||
119 (rtp_payload_types[i].audio_channels > 0 &&
120 codec->channels != rtp_payload_types[i].audio_channels)))
122 return rtp_payload_types[i].pt;
136 for (i = 0; rtp_payload_types[i].pt >= 0; i++)
137 if (rtp_payload_types[i].pt == payload_type)
138 return rtp_payload_types[i].enc_name;
147 for (i = 0; rtp_payload_types[i].pt >= 0; i++)
148 if (!av_strcasecmp(buf, rtp_payload_types[i].enc_name) && (codec_type == rtp_payload_types[i].codec_type))
149 return rtp_payload_types[i].codec_id;