avcodec/fmvc: fix decoding of odd size videos

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2017-02-17 10:46:52 +01:00
parent 1d54be2153
commit 1a71df9bac
1 changed files with 2 additions and 2 deletions

View File

@ -441,7 +441,7 @@ static int decode_frame(AVCodecContext *avctx,
for (y = 0; y < avctx->height; y++) {
memcpy(dst, src, avctx->width * s->bpp);
dst -= frame->linesize[0];
src += avctx->width * s->bpp;
src += s->stride * 4;
}
} else {
int block, nb_blocks, type, k, l;
@ -518,7 +518,7 @@ static int decode_frame(AVCodecContext *avctx,
for (y = 0; y < avctx->height; y++) {
memcpy(ddst, ssrc, avctx->width * s->bpp);
ddst -= frame->linesize[0];
ssrc += avctx->width * s->bpp;
ssrc += s->stride * 4;
}
}