MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / hb_audio_encoder_get_from_name

Function hb_audio_encoder_get_from_name

libhb/common.c:3281–3298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3279}
3280
3281int hb_audio_encoder_get_from_name(const char *name)
3282{
3283 if (name == NULL || *name == '\0')
3284 goto fail;
3285
3286 int i;
3287 for (i = 0; i < hb_audio_encoders_count; i++)
3288 {
3289 if (!strcasecmp(hb_audio_encoders[i].item.name, name) ||
3290 !strcasecmp(hb_audio_encoders[i].item.short_name, name))
3291 {
3292 return hb_audio_encoders[i].item.codec;
3293 }
3294 }
3295
3296fail:
3297 return HB_ACODEC_INVALID;
3298}
3299
3300const char* hb_audio_encoder_get_name(int encoder)
3301{

Callers 11

get_audio_copy_maskFunction · 0.85
validate_audio_encodersFunction · 0.85
add_audio_for_langFunction · 0.85
hb_preset_job_add_audioFunction · 0.85
preset_cleanFunction · 0.85
hb_dict_to_jobFunction · 0.85
PrepareJobFunction · 0.85
ghb_lookup_audio_encoderFunction · 0.85
ghb_preset_to_settingsFunction · 0.85

Calls

no outgoing calls

Tested by 1

PrepareJobFunction · 0.68