aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2017-02-17 10:46:52 +0100
committerPaul B Mahol <onemda@gmail.com>2017-02-17 10:48:04 +0100
commit1a71df9bac4bb5840b394e76f98aa34ce0c3eebc (patch)
tree45fbe62a672eebd956c6b56d3f52610b40da8792
parent1d54be215309b8aa71a51826e4b0a1660fef9f93 (diff)
downloadffmpeg-1a71df9bac4bb5840b394e76f98aa34ce0c3eebc.tar.gz
avcodec/fmvc: fix decoding of odd size videos
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r--libavcodec/fmvc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/fmvc.c b/libavcodec/fmvc.c
index 54bb6f95f9..c5e5b3d961 100644
--- a/libavcodec/fmvc.c
+++ b/libavcodec/fmvc.c
@@ -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;
}
}