/* Get the sample point location for a given bitrate.  */
static uint16_t sample_point_for_bitrate(uint32_t bitrate)
/* Get the sample point location for a given bitrate.  */
static uint16_t sample_point_for_bitrate(uint32_t bitrate)
{
	uint16_t sample_pnt;
	if (bitrate > 800000) {
		sample_pnt = 750;
	} else if (bitrate > 500000) {
		sample_pnt = 800;
	} else {
		sample_pnt = 875;
	}
	return sample_pnt;
}