Skip to content

Commit

Permalink
Fix bug in CHECK_ORDER_IS_VALID macro (#694)
Browse files Browse the repository at this point in the history
Fixes #635
  • Loading branch information
ktmf01 authored Apr 30, 2024
1 parent 49ab34d commit 61f8513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libFLAC/fixed.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ uint32_t FLAC__fixed_compute_best_predictor_wide(const FLAC__int32 data[], uint3
if(order_##macro_order##_is_valid && total_error_##macro_order < smallest_error) { \
order = macro_order; \
smallest_error = total_error_##macro_order ; \
residual_bits_per_sample[ macro_order ] = (float)((total_error_0 > 0) ? log(M_LN2 * (double)total_error_0 / (double)data_len) / M_LN2 : 0.0); \
residual_bits_per_sample[ macro_order ] = (float)((total_error_##macro_order > 0) ? log(M_LN2 * (double)total_error_##macro_order / (double)data_len) / M_LN2 : 0.0); \
} \
else \
residual_bits_per_sample[ macro_order ] = 34.0f;
Expand Down

0 comments on commit 61f8513

Please sign in to comment.