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

Function hb_mixdown_get_default_s

libhb/common.c:2951–2969  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2949}
2950
2951int hb_mixdown_get_default_s(uint32_t codec, const char *layout)
2952{
2953 int ret;
2954 AVChannelLayout ch_layout = {0};
2955
2956 if (layout == NULL)
2957 {
2958 return 0;
2959 }
2960
2961 ret = av_channel_layout_from_string(&ch_layout, layout);
2962 if (ret < 0)
2963 {
2964 return 0;
2965 }
2966 ret = hb_mixdown_get_default(codec, &ch_layout);
2967 av_channel_layout_uninit(&ch_layout);
2968 return ret;
2969}
2970
2971hb_mixdown_t* hb_mixdown_get_from_mixdown(int mixdown)
2972{

Callers

nothing calls this directly

Calls 1

hb_mixdown_get_defaultFunction · 0.85

Tested by

no test coverage detected