Commit 288dc5b4 authored by Tom Butterworth's avatar Tom Butterworth Committed by Michael Niedermayer

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: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent b1b0baa3
......@@ -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;
}
}
......
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