Commit 83e35a8d authored by vitor's avatar vitor

Remove cast, now tables are signed.



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15252 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent dc43c16b
......@@ -260,12 +260,12 @@ static inline int16_t mace_broken_clip_int16(int n)
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 chomp3(ChannelData *ctx, int16_t *output, uint8_t val,
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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment