mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avcodec/dirac_dwt_template: Fix signedness regression in interleave()
Found-by: <jdarnley> Tested-by: James Darnley <james.darnley@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 181435a4de6e38e0a15ddaf16de9a157ef41cb18) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
670b565ba2
commit
0561cde128
@ -57,8 +57,8 @@ static av_always_inline void RENAME(interleave)(TYPE *dst, TYPE *src0, TYPE *src
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < w2; i++) {
|
for (i = 0; i < w2; i++) {
|
||||||
dst[2*i ] = (src0[i] + (unsigned)add) >> shift;
|
dst[2*i ] = ((int)(src0[i] + (unsigned)add)) >> shift;
|
||||||
dst[2*i+1] = (src1[i] + (unsigned)add) >> shift;
|
dst[2*i+1] = ((int)(src1[i] + (unsigned)add)) >> shift;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user