mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-01 10:27:03 +03:00
width variable is only required with misconfigured libjpeg
This commit is contained in:
parent
b25ad06a34
commit
cea268ddc6
@ -206,7 +206,9 @@ static inline void nsjpeg__decode_rgb(
|
|||||||
uint8_t * volatile pixels,
|
uint8_t * volatile pixels,
|
||||||
size_t rowstride)
|
size_t rowstride)
|
||||||
{
|
{
|
||||||
|
#if RGB_RED != 0 || RGB_GREEN != 1 || RGB_BLUE != 2 || RGB_PIXELSIZE != 4
|
||||||
int width = cinfo->output_width;
|
int width = cinfo->output_width;
|
||||||
|
#endif
|
||||||
|
|
||||||
do {
|
do {
|
||||||
JSAMPROW scanlines[1] = {
|
JSAMPROW scanlines[1] = {
|
||||||
|
Loading…
Reference in New Issue
Block a user