(mpng) Cleanups

This commit is contained in:
twinaphex 2015-02-19 02:53:47 +01:00
parent 6bb81b59d5
commit 2596e1c0f6

View File

@ -515,11 +515,11 @@ bool png_decode(const void * pngdata, size_t pnglen, struct mpng_image * img, en
} while(i);
}
img->width=width;
img->height=height;
img->pixels=out;
img->pitch=videofmt_byte_per_pixel(format)*width;
img->format=format;
img->width = width;
img->height = height;
img->pixels = out;
img->pitch = videofmt_byte_per_pixel(format)*width;
img->format = format;
tinfl_deinit(&inflator);
free(pixels);
return true;