[FFmpeg-cvslog] r23063 - trunk/libavcodec/iff.c
mru
subversion
Sun May 9 18:24:20 CEST 2010
Author: mru
Date: Sun May 9 18:24:20 2010
New Revision: 23063
Log:
IFF: decode last 8 pixels per line
The decodeplane8() function processes one byte of input less than
it should. Also, the for loop has an unusual style with side-effects
in the controlling expression; replaced with a more intuitive while
loop.
10l to Basty.
Modified:
trunk/libavcodec/iff.c
Modified: trunk/libavcodec/iff.c
==============================================================================
--- trunk/libavcodec/iff.c Sun May 9 14:04:48 2010 (r23062)
+++ trunk/libavcodec/iff.c Sun May 9 18:24:20 2010 (r23063)
@@ -141,9 +141,10 @@ static av_cold int decode_init(AVCodecCo
static void decodeplane8(uint8_t *dst, const uint8_t *buf, int buf_size, int bps, int plane)
{
const uint64_t *lut = plane8_lut[plane];
- for(; --buf_size != 0; dst += 8) {
+ while (buf_size--) {
uint64_t v = AV_RN64A(dst) | lut[*buf++];
AV_WN64A(dst, v);
+ dst += 8;
}
}
More information about the ffmpeg-cvslog
mailing list