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

Function hb_audio_samplerate_get_next_for_codec

libhb/common.c:1100–1109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1098}
1099
1100const hb_rate_t* hb_audio_samplerate_get_next_for_codec(const hb_rate_t *last,
1101 uint32_t codec)
1102{
1103 while ((last = hb_audio_samplerate_get_next(last)) != NULL)
1104 if (hb_audio_samplerate_is_supported(last->rate, codec))
1105 return last;
1106
1107 // None found or end of list
1108 return NULL;
1109}
1110
1111int hb_audio_samplerate_find_closest(int samplerate, uint32_t codec)
1112{

Callers 1

Tested by

no test coverage detected