avcodec/wmavoice: use av_clipd for double values

Fixes Clang warning.

Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
release/7.1
Kacper Michajłow 7 months ago committed by Michael Niedermayer
parent 1165c14444
commit 9876158ee2
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64
  1. 2
      libavcodec/wmavoice.c

@ -655,7 +655,7 @@ static void calc_input_response(WMAVoiceContext *s, float *lpcs_src,
lpcs[n] = angle_mul * pwr;
/* 70.57 =~ 1/log10(1.0331663) */
idx = av_clipf((pwr * gain_mul - 0.0295) * 70.570526123, 0, INT_MAX / 2);
idx = av_clipd((pwr * gain_mul - 0.0295) * 70.570526123, 0, INT_MAX / 2);
if (idx > 127) { // fall back if index falls outside table range
coeffs[n] = wmavoice_energy_table[127] *

Loading…
Cancel
Save