takdec: silence/fix warning for undefined behavior

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2012-12-10 12:04:02 +00:00
parent 4a5289ade3
commit 4c7515286b
1 changed files with 2 additions and 1 deletions

View File

@ -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);