Commit 4c751528 authored by Paul B Mahol's avatar Paul B Mahol

takdec: silence/fix warning for undefined behavior

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 4a5289ad
......@@ -668,7 +668,8 @@ static int decorrelate(TAKDecContext *s, int c1, int c2, int length)
s->residues[i ] * s->filter[0];
}
*p1++ = (av_clip(v >> 10, -8192, 8191) << dshift) - *p1;
v = (av_clip(v >> 10, -8192, 8191) << dshift) - *p1;
*p1++ = v;
}
memcpy(s->residues, &s->residues[tmp], 2 * filter_order);
......
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