common: fix sycc420_to_rgb buffer overflow
This commit is contained in:
parent
6a29f5a9e3
commit
b239948ad9
|
@ -367,12 +367,14 @@ static void sycc420_to_rgb(opj_image_t *img)
|
|||
++b;
|
||||
|
||||
sycc_to_rgb(offset, upb, *y, *cb, *cr, r, g, b);
|
||||
|
||||
if (*y != img->comps[0].data[max])
|
||||
++y;
|
||||
++r;
|
||||
++g;
|
||||
++b;
|
||||
if (*cb != img->comps[1].data[max])
|
||||
++cb;
|
||||
if (*cr != img->comps[2].data[max])
|
||||
++cr;
|
||||
}
|
||||
if (j < maxw) {
|
||||
|
|
Loading…
Reference in New Issue