Loading lib_com/ivas_dirac_com.c +1 −1 Original line number Diff line number Diff line Loading @@ -395,7 +395,7 @@ void ivas_get_dirac_sba_max_md_bits( (minimum non-zero fractional part for X / 5 is 0.2 - substract half of this, to compensate for imprecisions; the ceilf() should still return the correct integer) For reasons of code-readability, the variant with double precision was chosen. */ *metadata_max_bits = (int16_t) min( (float) MAX16B, ceilf( (double) *metadata_max_bits * nbands / 5 ) ); *metadata_max_bits = (int16_t) min( (float) MAX16B, ceilf( (float) ( (double) *metadata_max_bits * nbands / 5 ) ) ); #else *metadata_max_bits = (int16_t) min( (float) MAX16B, ceilf( (float) *metadata_max_bits * nbands / 5 ) ); #endif Loading Loading
lib_com/ivas_dirac_com.c +1 −1 Original line number Diff line number Diff line Loading @@ -395,7 +395,7 @@ void ivas_get_dirac_sba_max_md_bits( (minimum non-zero fractional part for X / 5 is 0.2 - substract half of this, to compensate for imprecisions; the ceilf() should still return the correct integer) For reasons of code-readability, the variant with double precision was chosen. */ *metadata_max_bits = (int16_t) min( (float) MAX16B, ceilf( (double) *metadata_max_bits * nbands / 5 ) ); *metadata_max_bits = (int16_t) min( (float) MAX16B, ceilf( (float) ( (double) *metadata_max_bits * nbands / 5 ) ) ); #else *metadata_max_bits = (int16_t) min( (float) MAX16B, ceilf( (float) *metadata_max_bits * nbands / 5 ) ); #endif Loading