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

Function next_codec_for_id

fftools/opt_common.c:380–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378}
379
380static const AVCodec *next_codec_for_id(enum AVCodecID id, void **iter,
381 int encoder)
382{
383 const AVCodec *c;
384 while ((c = av_codec_iterate(iter))) {
385 if (c->id == id &&
386 (encoder ? av_codec_is_encoder(c) : av_codec_is_decoder(c)))
387 return c;
388 }
389 return NULL;
390}
391
392static void show_help_codec(const char *name, int encoder)
393{

Callers 4

show_help_codecFunction · 0.85
print_codecs_for_idFunction · 0.85
show_codecsFunction · 0.85
print_codecsFunction · 0.85

Calls 3

av_codec_iterateFunction · 0.85
av_codec_is_encoderFunction · 0.85
av_codec_is_decoderFunction · 0.85

Tested by

no test coverage detected