| 2364 | } |
| 2365 | |
| 2366 | static 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 | |
| 2380 | static int set_decoders(AVFormatContext *fmt_ctx) |
| 2381 | { |
nothing calls this directly
no test coverage detected