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

Function avcodec_get_name

libavcodec/utils.c:406–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

404}
405
406const char *avcodec_get_name(enum AVCodecID id)
407{
408 const AVCodecDescriptor *cd;
409 const AVCodec *codec;
410
411 if (id == AV_CODEC_ID_NONE)
412 return "none";
413 cd = avcodec_descriptor_get(id);
414 if (cd)
415 return cd->name;
416 av_log(NULL, AV_LOG_WARNING, "Codec 0x%x is not in the full list.\n", id);
417 codec = avcodec_find_decoder(id);
418 if (codec)
419 return codec->name;
420 codec = avcodec_find_encoder(id);
421 if (codec)
422 return codec->name;
423 return "unknown_codec";
424}
425
426const char *av_get_profile_name(const AVCodec *codec, int profile)
427{

Callers 15

device_try_initFunction · 0.85
mainFunction · 0.85
ff_put_wav_headerFunction · 0.85
ico_check_attributesFunction · 0.85
read_frame_internalFunction · 0.85
iamf_initFunction · 0.85
rtp_write_headerFunction · 0.85
get_audio_flagsFunction · 0.85
flv_initFunction · 0.85
log_slaveFunction · 0.85

Calls 4

avcodec_descriptor_getFunction · 0.85
av_logFunction · 0.85
avcodec_find_decoderFunction · 0.85
avcodec_find_encoderFunction · 0.85

Tested by 3

mainFunction · 0.68
mainFunction · 0.68
dump_stream_metaFunction · 0.68