MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / ff_rtp_codec_id

Function ff_rtp_codec_id

libavformat/rtp.c:146–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146enum 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}

Callers 1

sdp_parse_rtpmapFunction · 0.85

Calls 1

av_strcasecmpFunction · 0.85

Tested by

no test coverage detected