ref: 3996642cd731a1b609972ff5d4277f3a387cf12b
parent: 6d2d5c424d2234b3665c7aa6f0f8a342d48a5ee0
author: Ralph Giles <[email protected]>
date: Wed May 14 05:46:22 EDT 2014
Fix type conversion warning. Use abs(sweep_bps) instead of fabs(). "sweep_bps" is an integer, and on some compilers this line generates a warning. Patch from Tina le Grand. Reviewed by Jean-Marc Valin
--- a/src/opus_demo.c
+++ b/src/opus_demo.c
@@ -637,7 +637,7 @@
case 4: newsize=sampling_rate/25; break;
case 5: newsize=3*sampling_rate/50; break;
}
- while (newsize < sampling_rate/25 && bitrate_bps-fabs(sweep_bps) <= 3*12*sampling_rate/newsize)
+ while (newsize < sampling_rate/25 && bitrate_bps-abs(sweep_bps) <= 3*12*sampling_rate/newsize)
newsize*=2;
if (newsize < sampling_rate/100 && frame_size >= sampling_rate/100)
{