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

Function hb_container_get_from_name

libhb/common.c:3598–3615  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3596}
3597
3598int hb_container_get_from_name(const char *name)
3599{
3600 if (name == NULL || *name == '\0')
3601 goto fail;
3602
3603 int i;
3604 for (i = 0; i < hb_containers_count; i++)
3605 {
3606 if (!strcasecmp(hb_containers[i].item.name, name) ||
3607 !strcasecmp(hb_containers[i].item.short_name, name))
3608 {
3609 return hb_containers[i].item.format;
3610 }
3611 }
3612
3613fail:
3614 return HB_MUX_INVALID;
3615}
3616
3617int hb_container_get_from_extension(const char *extension)
3618{

Callers 10

get_job_muxFunction · 0.85
hb_preset_apply_videoFunction · 0.85
hb_preset_apply_muxFunction · 0.85
preset_cleanFunction · 0.85
hb_dict_to_jobFunction · 0.85
PreparePresetFunction · 0.85
PrepareJobFunction · 0.85

Calls

no outgoing calls

Tested by 2

PreparePresetFunction · 0.68
PrepareJobFunction · 0.68