mirror of https://git.ffmpeg.org/ffmpeg.git
IFF PBM decoder: Add a pad byte if image width is odd <aleksi dot nurmi at gmail dot com>
Originally committed as revision 23701 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
e83aed04b0
commit
e10412a334
|
@ -293,7 +293,7 @@ static int decode_frame_ilbm(AVCodecContext *avctx,
|
||||||
for(y = 0; y < avctx->height; y++ ) {
|
for(y = 0; y < avctx->height; y++ ) {
|
||||||
uint8_t *row = &s->frame.data[0][y * s->frame.linesize[0]];
|
uint8_t *row = &s->frame.data[0][y * s->frame.linesize[0]];
|
||||||
memcpy(row, buf, FFMIN(avctx->width, buf_end - buf));
|
memcpy(row, buf, FFMIN(avctx->width, buf_end - buf));
|
||||||
buf += avctx->width;
|
buf += avctx->width + (avctx->width % 2); // padding if odd
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue