Mercurial > libavcodec.hg
changeset 11914:317c18e0b753 libavcodec
IFF PBM decoder: Add a pad byte if image width is odd <aleksi dot nurmi at gmail dot com>
author | pross |
---|---|
date | Tue, 22 Jun 2010 12:41:17 +0000 |
parents | 80916e795581 |
children | c6ef8db76115 |
files | iff.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/iff.c Tue Jun 22 09:22:21 2010 +0000 +++ b/iff.c Tue Jun 22 12:41:17 2010 +0000 @@ -293,7 +293,7 @@ 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 } }