mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-17 04:20:10 +01:00
avcodec/fmvc: fix decoding of odd size videos
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
@@ -441,7 +441,7 @@ static int decode_frame(AVCodecContext *avctx,
|
|||||||
for (y = 0; y < avctx->height; y++) {
|
for (y = 0; y < avctx->height; y++) {
|
||||||
memcpy(dst, src, avctx->width * s->bpp);
|
memcpy(dst, src, avctx->width * s->bpp);
|
||||||
dst -= frame->linesize[0];
|
dst -= frame->linesize[0];
|
||||||
src += avctx->width * s->bpp;
|
src += s->stride * 4;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
int block, nb_blocks, type, k, l;
|
int block, nb_blocks, type, k, l;
|
||||||
@@ -518,7 +518,7 @@ static int decode_frame(AVCodecContext *avctx,
|
|||||||
for (y = 0; y < avctx->height; y++) {
|
for (y = 0; y < avctx->height; y++) {
|
||||||
memcpy(ddst, ssrc, avctx->width * s->bpp);
|
memcpy(ddst, ssrc, avctx->width * s->bpp);
|
||||||
ddst -= frame->linesize[0];
|
ddst -= frame->linesize[0];
|
||||||
ssrc += avctx->width * s->bpp;
|
ssrc += s->stride * 4;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user