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

Function get_decoder_by_name

fftools/ffprobe.c:2366–2378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2364}
2365
2366static int get_decoder_by_name(const char *codec_name, const AVCodec **codec)
2367{
2368 if (codec_name == NULL)
2369 return 0;
2370
2371 *codec = avcodec_find_decoder_by_name(codec_name);
2372 if (*codec == NULL) {
2373 av_log(NULL, AV_LOG_ERROR,
2374 "No codec could be found with name '%s'\n", codec_name);
2375 return AVERROR(EINVAL);
2376 }
2377 return 0;
2378}
2379
2380static int set_decoders(AVFormatContext *fmt_ctx)
2381{

Callers

nothing calls this directly

Calls 2

av_logFunction · 0.85

Tested by

no test coverage detected