Commit 1a71df9b authored by Paul B Mahol's avatar Paul B Mahol

avcodec/fmvc: fix decoding of odd size videos

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 1d54be21
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment