changeset 7815:275e43fa3dcb libavcodec

Remove cast, now tables are signed.
author vitor
date Sun, 07 Sep 2008 14:32:10 +0000
parents 3cdedd7f0017
children e4b066e695b1
files mace.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mace.c	Sun Sep 07 14:30:54 2008 +0000
+++ b/mace.c	Sun Sep 07 14:32:10 2008 +0000
@@ -260,12 +260,12 @@
 
 static void chomp3(ChannelData *ctx, int16_t *output, uint8_t val,
                    const uint16_t tab1[],
-                   const uint16_t *tab2, int tab2_stride,
+                   const int16_t *tab2, int tab2_stride,
                    uint32_t numChannels)
 {
     short current;
 
-    current = (short)tab2[((ctx->index & 0x7f0) >> 4)*tab2_stride + val];
+    current = tab2[((ctx->index & 0x7f0) >> 4)*tab2_stride + val];
 
     current = mace_broken_clip_int16(current + ctx->lev);
 
@@ -277,12 +277,12 @@
 
 static void chomp6(ChannelData *ctx, int16_t *output, uint8_t val,
                    const uint16_t tab1[],
-                   const uint16_t *tab2, int tab2_stride,
+                   const int16_t *tab2, int tab2_stride,
                    uint32_t numChannels)
 {
     short current;
 
-    current = (short)tab2[((ctx->index & 0x7f0) >> 4)*tab2_stride + val];
+    current = tab2[((ctx->index & 0x7f0) >> 4)*tab2_stride + val];
 
     if ((ctx->previous ^ current) >= 0) {
         ctx->factor = FFMIN(ctx->factor + 506, 32767);