X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fralf.c;h=619fd7126aaadacc9ed7a48706d132a9751f7bce;hb=c9415e815a996d287850a3572ce2c1d663b9f657;hp=3f7953c6db4b3ab281db150149e0360760b7f961;hpb=185aa5e896e15ae96145609944bfc6bbb239bc64;p=ffmpeg diff --git a/libavcodec/ralf.c b/libavcodec/ralf.c index 3f7953c6db4..619fd7126aa 100644 --- a/libavcodec/ralf.c +++ b/libavcodec/ralf.c @@ -286,7 +286,7 @@ static int decode_channel(RALFContext *ctx, GetBitContext *gb, int ch, add_bits--; range = 10; range2 = 21; - code_vlc = set->long_codes + code_params - 15; + code_vlc = set->long_codes + (code_params - 15); } else { add_bits = 0; range = 6; @@ -323,7 +323,7 @@ static void apply_lpc(RALFContext *ctx, int ch, int length, int bits) acc = 0; for (j = 0; j < flen; j++) - acc += ctx->filter[j] * audio[i - j - 1]; + acc += (unsigned)ctx->filter[j] * audio[i - j - 1]; if (acc < 0) { acc = (acc + bias - 1) >> ctx->filter_bits; acc = FFMAX(acc, min_clip);