[FFmpeg-cvslog] avcodec/wmavoice: use av_clipd for double values
Kacper Michajłow
git at videolan.org
Wed Aug 7 01:59:58 EEST 2024
ffmpeg | branch: master | Kacper Michajłow <kasper93 at gmail.com> | Wed Jul 10 17:28:48 2024 +0200| [9876158ee270fd6c38326668487b7ce37bc509d7] | committer: Michael Niedermayer
avcodec/wmavoice: use av_clipd for double values
Fixes Clang warning.
Signed-off-by: Kacper Michajłow <kasper93 at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9876158ee270fd6c38326668487b7ce37bc509d7
---
libavcodec/wmavoice.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/wmavoice.c b/libavcodec/wmavoice.c
index 258c71330c..3db73773b7 100644
--- a/libavcodec/wmavoice.c
+++ b/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] *
More information about the ffmpeg-cvslog
mailing list