mirror of
https://github.com/libretro/RetroArch
synced 2025-02-12 00:40:26 +00:00
fix null dereference (but scan-build still warns with "Assigned value is garbage or undefined")
This commit is contained in:
parent
23d7fbcaf3
commit
2f87f669f1
@ -2505,6 +2505,8 @@ static uint8_t *rjpeg_load_jpeg_image(rjpeg__jpeg *z,
|
||||
if (n >= 3)
|
||||
{
|
||||
uint8_t *y = coutput[0];
|
||||
if (y)
|
||||
{
|
||||
if (z->s->img_n == 3)
|
||||
z->YCbCr_to_RGB_kernel(out, y, coutput[1], coutput[2], z->s->img_x, n);
|
||||
else
|
||||
@ -2515,6 +2517,7 @@ static uint8_t *rjpeg_load_jpeg_image(rjpeg__jpeg *z,
|
||||
out += n;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t *y = coutput[0];
|
||||
|
Loading…
x
Reference in New Issue
Block a user