mirror of https://github.com/xiph/flac
Fix bug in CHECK_ORDER_IS_VALID macro in functions with intrinsics (#696)
This fixes a few things I missed with https://github.com/xiph/flac/pull/694
This commit is contained in:
parent
653b1187a1
commit
de80349297
|
@ -178,7 +178,7 @@ if(shadow_error_##macro_order <= INT32_MAX) { \
|
|||
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;
|
||||
|
|
|
@ -59,7 +59,7 @@ if(shadow_error_##macro_order <= INT32_MAX) { \
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue