| 1051 | } |
| 1052 | |
| 1053 | static 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 | |
| 1071 | const AVCodec *avcodec_find_encoder_by_name(const char *name) |
| 1072 | { |
no test coverage detected