mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/s3tc: fix alpha decoding when dimensions are not a multiple of 4
Fix alpha position error for edge blocks of odd-dimensioned frames Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
b1b0baa3d6
commit
288dc5b4a1
@ -71,8 +71,10 @@ static inline void dxt1_decode_pixels(GetByteContext *gb, uint32_t *d,
|
||||
pixels >>= 2;
|
||||
alpha >>= 4;
|
||||
}
|
||||
for (; x<4; x++)
|
||||
for (; x<4; x++) {
|
||||
pixels >>= 2;
|
||||
alpha >>= 4;
|
||||
}
|
||||
d += qstride;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user