diff options
author | Benjamin Larsson <banan@ludd.ltu.se> | 2006-01-21 02:06:35 +0300 |
---|---|---|
committer | Benjamin Larsson <banan@ludd.ltu.se> | 2006-01-21 02:06:35 +0300 |
commit | 82863d1e02bf27af6607a497104ecff4cc011963 (patch) | |
tree | b25dc463376c8cb779d8b239640f03ff98e8e7f9 /libavcodec | |
parent | 806011f2adb1143ca3f6db89fe6eae8fa9fb72f1 (diff) |
Silence warnings, these came when some tables got declared as const.
Originally committed as revision 4873 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/truespeech.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/truespeech.c b/libavcodec/truespeech.c index 24a93e8b54..71b3297b66 100644 --- a/libavcodec/truespeech.c +++ b/libavcodec/truespeech.c @@ -201,7 +201,7 @@ static void truespeech_apply_twopoint_filter(TSContext *dec, int quart) off = (t / 25) + dec->offset1[quart >> 1] + 18; ptr0 = tmp + 145 - off; ptr1 = tmp + 146; - filter = ts_240 + (t % 25) * 2; + filter = (int16_t*)ts_240 + (t % 25) * 2; for(i = 0; i < 60; i++){ t = (ptr0[0] * filter[0] + ptr0[1] * filter[1] + 0x2000) >> 14; ptr0++; @@ -225,7 +225,7 @@ static void truespeech_place_pulses(TSContext *dec, int16_t *out, int quart) } coef = dec->pulsepos[quart] >> 15; - ptr1 = ts_140 + 30; + ptr1 = (int16_t*)ts_140 + 30; ptr2 = tmp; for(i = 0, j = 3; (i < 30) && (j > 0); i++){ t = *ptr1++; @@ -238,7 +238,7 @@ static void truespeech_place_pulses(TSContext *dec, int16_t *out, int quart) } } coef = dec->pulsepos[quart] & 0x7FFF; - ptr1 = ts_140; + ptr1 = (int16_t*)ts_140; for(i = 30, j = 4; (i < 60) && (j > 0); i++){ t = *ptr1++; if(coef >= t) |