diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-02-27 14:56:45 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-02-27 17:47:54 +0100 |
commit | 17d4efed6a9140d072e7e497132b96dd37f73eca (patch) | |
tree | a0f5af3d5f3e2fabf4b9b1cd4d0975c59854a60e /source | |
parent | 9f8e0724789744d81c5de0138e65284a9560e707 (diff) | |
download | mupdf-17d4efed6a9140d072e7e497132b96dd37f73eca.tar.xz |
Fix 699076: Scoping bug in png_write_band.
Diffstat (limited to 'source')
-rw-r--r-- | source/fitz/output-png.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fitz/output-png.c b/source/fitz/output-png.c index 15fb41f0..83490951 100644 --- a/source/fitz/output-png.c +++ b/source/fitz/output-png.c @@ -219,10 +219,10 @@ png_write_band(fz_context *ctx, fz_band_writer *writer_, int stride, int band_st /* Unpremultiply data */ for (y = 0; y < band_height; y++) { + int prev[FZ_MAX_COLORS]; *dp++ = 1; /* sub prediction filter */ for (x = 0; x < w; x++) { - int prev[FZ_MAX_COLORS]; int a = sp[n-1]; int inva = a ? 256*255/a : 0; int p; |