Commit f0d4f00f authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/mjpegdec: fix green line at the bottom with upscale v

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 63a52ca1
......@@ -2131,7 +2131,7 @@ the_end:
for (i = s->height - 1; i; i--) {
uint8_t *src1 = &((uint8_t *)s->picture_ptr->data[p])[i / 2 * s->linesize[p]];
uint8_t *src2 = &((uint8_t *)s->picture_ptr->data[p])[(i + 1) / 2 * s->linesize[p]];
if (src1 == src2) {
if (src1 == src2 || i == s->height - 1) {
memcpy(dst, src1, w);
} else {
for (index = 0; index < w; index++)
......
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