| 144 | } |
| 145 | |
| 146 | enum AVCodecID ff_rtp_codec_id(const char *buf, enum AVMediaType codec_type) |
| 147 | { |
| 148 | int i; |
| 149 | |
| 150 | for (i = 0; rtp_payload_types[i].pt >= 0; i++) |
| 151 | if (!av_strcasecmp(buf, rtp_payload_types[i].enc_name) && (codec_type == rtp_payload_types[i].codec_type)) |
| 152 | return rtp_payload_types[i].codec_id; |
| 153 | |
| 154 | return AV_CODEC_ID_NONE; |
| 155 | } |
no test coverage detected