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

Function ff_codec_get_id

libavformat/utils.c:143–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143enum AVCodecID ff_codec_get_id(const AVCodecTag *tags, unsigned int tag)
144{
145 for (int i = 0; tags[i].id != AV_CODEC_ID_NONE; i++)
146 if (tag == tags[i].tag)
147 return tags[i].id;
148 for (int i = 0; tags[i].id != AV_CODEC_ID_NONE; i++)
149 if (ff_toupper4(tag) == ff_toupper4(tags[i].tag))
150 return tags[i].id;
151 return AV_CODEC_ID_NONE;
152}
153
154enum AVCodecID ff_get_pcm_codec_id(int bps, int flt, int be, int sflags)
155{

Callers 15

read_headerFunction · 0.85
aac_decoder_configFunction · 0.85
get_qt_codecFunction · 0.85
mka_parse_audio_codecFunction · 0.85
mkv_parse_video_codecFunction · 0.85
oma_read_headerFunction · 0.85
mov_codec_idFunction · 0.85
mov_skip_multiple_stsdFunction · 0.85
get_aiff_headerFunction · 0.85
av_codec_get_idFunction · 0.85

Calls 1

ff_toupper4Function · 0.85

Tested by

no test coverage detected