Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Giles <giles@mozilla.com>2014-05-14 20:46:22 +0400
committerRalph Giles <giles@mozilla.com>2014-05-14 21:46:42 +0400
commit3996642cd731a1b609972ff5d4277f3a387cf12b (patch)
treed14009bac831efe2860d93fdb3f2f9b5505e88ba /src/opus_demo.c
parent6d2d5c424d2234b3665c7aa6f0f8a342d48a5ee0 (diff)
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
Diffstat (limited to 'src/opus_demo.c')
-rw-r--r--src/opus_demo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opus_demo.c b/src/opus_demo.c
index f8cdf031..72506b5d 100644
--- a/src/opus_demo.c
+++ b/src/opus_demo.c
@@ -637,7 +637,7 @@ int main(int argc, char *argv[])
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)
{