|
|
@@ -554,7 +554,7 @@ static inline int wv_unpack_mono(WavpackFrameContext *s, GetBitContext *gb, |
|
|
if (type != AV_SAMPLE_FMT_S16P) |
|
|
if (type != AV_SAMPLE_FMT_S16P) |
|
|
S = T + ((s->decorr[i].weightA * (int64_t)A + 512) >> 10); |
|
|
S = T + ((s->decorr[i].weightA * (int64_t)A + 512) >> 10); |
|
|
else |
|
|
else |
|
|
S = T + ((s->decorr[i].weightA * A + 512) >> 10); |
|
|
|
|
|
|
|
|
S = T + ((int)(s->decorr[i].weightA * (unsigned)A + 512) >> 10); |
|
|
if (A && T) |
|
|
if (A && T) |
|
|
s->decorr[i].weightA -= ((((T ^ A) >> 30) & 2) - 1) * s->decorr[i].delta; |
|
|
s->decorr[i].weightA -= ((((T ^ A) >> 30) & 2) - 1) * s->decorr[i].delta; |
|
|
s->decorr[i].samplesA[j] = T = S; |
|
|
s->decorr[i].samplesA[j] = T = S; |
|
|
|