Unified · Split
| @@ -173,26 +173,26 @@ sinc_set_converter (SRC_PRIVATE *psrc, int src_enum) · 172 unmodified lines | ||
| 173 | 173 | switch (src_enum) |
| 174 | 174 | { case SRC_SINC_BEST_QUALITY : |
| 175 | 175 | temp_filter.coeffs = high_qual_coeffs ; |
| 176 | − temp_filter.coeff_half_len = (sizeof (high_qual_coeffs) / sizeof (coeff_t)) - 1 ; | |
| 176 | + temp_filter.coeff_half_len = ARRAY_LEN (high_qual_coeffs) - 1 ; | |
| 177 | 177 | temp_filter.index_inc = 128 ; |
| 178 | 178 | temp_filter.has_diffs = SRC_FALSE ; |
| 179 | − temp_filter.coeff_len = sizeof (high_qual_coeffs) / sizeof (coeff_t) ; | |
| 179 | + temp_filter.coeff_len = ARRAY_LEN (high_qual_coeffs) ; | |
| 180 | 180 | break ; |
| 181 | 181 | |
| 182 | 182 | case SRC_SINC_MEDIUM_QUALITY : |
| 183 | 183 | temp_filter.coeffs = mid_qual_coeffs ; |
| 184 | − temp_filter.coeff_half_len = (sizeof (mid_qual_coeffs) / sizeof (coeff_t)) - 1 ; | |
| 184 | + temp_filter.coeff_half_len = ARRAY_LEN (mid_qual_coeffs) - 1 ; | |
| 185 | 185 | temp_filter.index_inc = 128 ; |
| 186 | 186 | temp_filter.has_diffs = SRC_FALSE ; |
| 187 | − temp_filter.coeff_len = sizeof (mid_qual_coeffs) / sizeof (coeff_t) ; | |
| 187 | + temp_filter.coeff_len = ARRAY_LEN (mid_qual_coeffs) ; | |
| 188 | 188 | break ; |
| 189 | 189 | |
| 190 | 190 | case SRC_SINC_FASTEST : |
| 191 | 191 | temp_filter.coeffs = fastest_coeffs ; |
| 192 | − temp_filter.coeff_half_len = (sizeof (fastest_coeffs) / sizeof (coeff_t)) - 1 ; | |
| 192 | + temp_filter.coeff_half_len = ARRAY_LEN (fastest_coeffs) - 1 ; | |
| 193 | 193 | temp_filter.index_inc = 128 ; |
| 194 | 194 | temp_filter.has_diffs = SRC_FALSE ; |
| 195 | − temp_filter.coeff_len = sizeof (fastest_coeffs) / sizeof (coeff_t) ; | |
| 195 | + temp_filter.coeff_len = ARRAY_LEN (fastest_coeffs) ; | |
| 196 | 196 | break ; |
| 197 | 197 | |
| 198 | 198 | default : |