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

Function find_codec_by_name

libavcodec/allcodecs.c:1053–1069  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1051}
1052
1053static const AVCodec *find_codec_by_name(const char *name, int (*x)(const AVCodec *))
1054{
1055 void *i = 0;
1056 const AVCodec *p;
1057
1058 if (!name)
1059 return NULL;
1060
1061 while ((p = av_codec_iterate(&i))) {
1062 if (!x(p))
1063 continue;
1064 if (strcmp(name, p->name) == 0)
1065 return p;
1066 }
1067
1068 return NULL;
1069}
1070
1071const AVCodec *avcodec_find_encoder_by_name(const char *name)
1072{

Callers 2

Calls 1

av_codec_iterateFunction · 0.85

Tested by

no test coverage detected