mirror of
http://git.mos6581.com/ManchildProductions/Male-Poon.git
synced 2026-05-26 16:39:26 +00:00
Fix build bustage caused by d352b55567.
This commit is contained in:
@@ -837,10 +837,14 @@ nsPNGDecoder::frame_info_callback(png_structp png_ptr, png_uint_32 frame_num)
|
||||
width = png_get_next_frame_width(png_ptr, decoder->mInfo);
|
||||
height = png_get_next_frame_height(png_ptr, decoder->mInfo);
|
||||
|
||||
if (width == 0)
|
||||
png_error(png_ptr, "Frame width must not be 0");
|
||||
if (height == 0)
|
||||
png_error(png_ptr, "Frame height must not be 0");
|
||||
if (width == 0) {
|
||||
PR_LOG(GetPNGLog(), PR_LOG_ERROR, ("libpng error: Frame width must not be 0\n"));
|
||||
longjmp(png_jmpbuf(png_ptr), 1);
|
||||
}
|
||||
if (height == 0) {
|
||||
PR_LOG(GetPNGLog(), PR_LOG_ERROR, ("libpng error: Frame height must not be 0\n"));
|
||||
longjmp(png_jmpbuf(png_ptr), 1);
|
||||
}
|
||||
|
||||
decoder->CreateFrame(x_offset, y_offset, width, height, decoder->format);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user