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

Function str2id

libavformat/img2.c:110–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108};
109
110static enum AVCodecID str2id(const IdStrMap *tags, const char *str)
111{
112 str = strrchr(str, '.');
113 if (!str)
114 return AV_CODEC_ID_NONE;
115 str++;
116
117 while (tags->id) {
118 if (!av_strcasecmp(str, tags->str))
119 return tags->id;
120
121 tags++;
122 }
123 return AV_CODEC_ID_NONE;
124}
125
126enum AVCodecID ff_guess_image2_codec(const char *filename)
127{

Callers 1

ff_guess_image2_codecFunction · 0.85

Calls 1

av_strcasecmpFunction · 0.85

Tested by

no test coverage detected