summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavcodec/iff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/iff.c b/libavcodec/iff.c
index 29353bf1f4..21d93ec102 100644
--- a/libavcodec/iff.c
+++ b/libavcodec/iff.c
@@ -293,7 +293,7 @@ static int decode_frame_ilbm(AVCodecContext *avctx,
for(y = 0; y < avctx->height; y++ ) {
uint8_t *row = &s->frame.data[0][y * s->frame.linesize[0]];
memcpy(row, buf, FFMIN(avctx->width, buf_end - buf));
- buf += avctx->width;
+ buf += avctx->width + (avctx->width % 2); // padding if odd
}
}