Review code in calc_var_azi()
(Generic issue template)
This affects both, float and BASOP code bases: The function `calc_var_azi()`, which is used in the DirAC and MASA entropy coder has some suspicious code:
```
var_band = 0.0f;
for ( i = 0; i < idx; i++ )
{
dif = ( avg_azimuth_band[idx] - avg_azimuth );
if ( dif < 0 )
{
dif = -dif;
}
if ( dif > 180 )
{
dif = 360 - dif;
}
var_band += dif * dif;
}
```
While the for-loop is iterating from `0` to `idx` using `i`, for the calcuation of dif actually `avg_azimuth_band[idx]` is used. I would have expected that the line should read
```
dif = ( avg_azimuth_band[i] - avg_azimuth );
```
<!--- Below are labels that will be added but are not shown in description. This is a template to help fill them.
Add further information to the first row and remove and add labels as necessary.-->
issue