mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-14 00:58:38 +02:00
avcodec/mjpegdec: use memset to clear alpha
Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
parent
f7f4ff1b86
commit
e6b9bfaac3
@ -2793,8 +2793,8 @@ the_end:
|
|||||||
dst[0][j] = g*257 >> 16;
|
dst[0][j] = g*257 >> 16;
|
||||||
dst[1][j] = b*257 >> 16;
|
dst[1][j] = b*257 >> 16;
|
||||||
dst[2][j] = r*257 >> 16;
|
dst[2][j] = r*257 >> 16;
|
||||||
dst[3][j] = 255;
|
|
||||||
}
|
}
|
||||||
|
memset(dst[3], 255, w);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (s->adobe_transform == 2 && s->avctx->pix_fmt == AV_PIX_FMT_YUVA444P) {
|
if (s->adobe_transform == 2 && s->avctx->pix_fmt == AV_PIX_FMT_YUVA444P) {
|
||||||
@ -2816,8 +2816,8 @@ the_end:
|
|||||||
dst[0][j] = r*257 >> 16;
|
dst[0][j] = r*257 >> 16;
|
||||||
dst[1][j] = (g*257 >> 16) + 128;
|
dst[1][j] = (g*257 >> 16) + 128;
|
||||||
dst[2][j] = (b*257 >> 16) + 128;
|
dst[2][j] = (b*257 >> 16) + 128;
|
||||||
dst[3][j] = 255;
|
|
||||||
}
|
}
|
||||||
|
memset(dst[3], 255, w);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user