mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
602 B
18 lines
602 B
6 years ago
|
diff --git a/3rdparty/libpng/pngrutil.c b/3rdparty/libpng/pngrutil.c
|
||
|
index d5fa08c397..4db3de990b 100644
|
||
|
--- a/3rdparty/libpng/pngrutil.c
|
||
|
+++ b/3rdparty/libpng/pngrutil.c
|
||
|
@@ -2087,10 +2087,8 @@ png_handle_eXIf(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
- if (png_crc_finish(png_ptr, 0) != 0)
|
||
|
- return;
|
||
|
-
|
||
|
- png_set_eXIf_1(png_ptr, info_ptr, length, info_ptr->eXIf_buf);
|
||
|
+ if (png_crc_finish(png_ptr, 0) == 0)
|
||
|
+ png_set_eXIf_1(png_ptr, info_ptr, length, info_ptr->eXIf_buf);
|
||
|
|
||
|
png_free(png_ptr, info_ptr->eXIf_buf);
|
||
|
info_ptr->eXIf_buf = NULL;
|