summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2005-02-16 12:48:24 +0000
committerDave Chapman <dave@dchapman.com>2005-02-16 12:48:24 +0000
commit9cba5b64dc32ebcddaa72a7d4ce7440df6fc2e7b (patch)
tree8e0a3818fc9d09f712f0113a08a0863478f10ede
parent562627c213f73b21ae2c70ad728b5ec131028b80 (diff)
downloadrockbox-9cba5b64dc32ebcddaa72a7d4ce7440df6fc2e7b.tar.gz
rockbox-9cba5b64dc32ebcddaa72a7d4ce7440df6fc2e7b.zip
Trivial changes to avoid compiler warnings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5975 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/codecs/liba52/a52_internal.h2
-rw-r--r--apps/codecs/liba52/downmix.c3
-rw-r--r--apps/codecs/liba52/imdct.c7
3 files changed, 9 insertions, 3 deletions
diff --git a/apps/codecs/liba52/a52_internal.h b/apps/codecs/liba52/a52_internal.h
index a158227699..32b1160903 100644
--- a/apps/codecs/liba52/a52_internal.h
+++ b/apps/codecs/liba52/a52_internal.h
@@ -155,6 +155,6 @@ typedef int16_t quantizer_t;
155 155
156#define MUL_C(a,b) MUL_L (a, LEVEL (b)) 156#define MUL_C(a,b) MUL_L (a, LEVEL (b))
157#define DIV(a,b) ((((int64_t)LEVEL (a)) << 26) / (b)) 157#define DIV(a,b) ((((int64_t)LEVEL (a)) << 26) / (b))
158#define BIAS(x) (x) 158#define BIAS(x) ((x) + (bias*0))
159 159
160#endif 160#endif
diff --git a/apps/codecs/liba52/downmix.c b/apps/codecs/liba52/downmix.c
index 5660951486..89b6da2ae0 100644
--- a/apps/codecs/liba52/downmix.c
+++ b/apps/codecs/liba52/downmix.c
@@ -480,6 +480,9 @@ static void zero (sample_t * samples)
480void a52_downmix (sample_t * samples, int acmod, int output, sample_t bias, 480void a52_downmix (sample_t * samples, int acmod, int output, sample_t bias,
481 level_t clev, level_t slev) 481 level_t clev, level_t slev)
482{ 482{
483 /* avoid compiler warning */
484 (void)clev;
485
483 switch (CONVERT (acmod, output & A52_CHANNEL_MASK)) { 486 switch (CONVERT (acmod, output & A52_CHANNEL_MASK)) {
484 487
485 case CONVERT (A52_CHANNEL, A52_CHANNEL2): 488 case CONVERT (A52_CHANNEL, A52_CHANNEL2):
diff --git a/apps/codecs/liba52/imdct.c b/apps/codecs/liba52/imdct.c
index 4d5a6ca223..cbede95be6 100644
--- a/apps/codecs/liba52/imdct.c
+++ b/apps/codecs/liba52/imdct.c
@@ -345,6 +345,7 @@ void a52_imdct_256 (sample_t * data, sample_t * delay, sample_t bias)
345 } 345 }
346} 346}
347 347
348/*
348static double besselI0 (double x) 349static double besselI0 (double x)
349{ 350{
350 double bessel = 1; 351 double bessel = 1;
@@ -355,11 +356,13 @@ static double besselI0 (double x)
355 while (--i); 356 while (--i);
356 return bessel; 357 return bessel;
357} 358}
359*/
358 360
359void a52_imdct_init (uint32_t mm_accel) 361void a52_imdct_init (uint32_t mm_accel)
360{ 362{
361 int i, k; 363 (void)mm_accel;
362/* double sum; 364/* int i, k;
365 double sum;
363 double local_imdct_window[256];*/ 366 double local_imdct_window[256];*/
364 367
365 /* compute imdct window - kaiser-bessel derived window, alpha = 5.0 */ 368 /* compute imdct window - kaiser-bessel derived window, alpha = 5.0 */