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

Function hb_container_get_from_extension

libhb/common.c:3617–3633  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3615}
3616
3617int hb_container_get_from_extension(const char *extension)
3618{
3619 if (extension == NULL || *extension == '\0')
3620 goto fail;
3621
3622 int i;
3623 for (i = 0; i < hb_containers_count; i++)
3624 {
3625 if (!strcasecmp(hb_containers[i].item.default_extension, extension))
3626 {
3627 return hb_containers[i].item.format;
3628 }
3629 }
3630
3631fail:
3632 return HB_MUX_INVALID;
3633}
3634
3635const char* hb_container_get_name(int format)
3636{

Callers 4

get_job_muxFunction · 0.85
hb_preset_apply_muxFunction · 0.85
hb_dict_to_jobFunction · 0.85
CheckOptionsFunction · 0.85

Calls

no outgoing calls

Tested by 1

CheckOptionsFunction · 0.68