mirror of
https://github.com/openharmony/third_party_libpng.git
synced 2026-07-01 09:25:04 -04:00
e7995e70b2
Signed-off-by: gcw_5Q40SBlf <guokuan1@h-partners.com>
16 lines
526 B
Diff
16 lines
526 B
Diff
diff --git a/pngrtran.c b/pngrtran.c
|
|
index 31be668..7002044 100644
|
|
--- a/pngrtran.c
|
|
+++ b/pngrtran.c
|
|
@@ -1765,6 +1765,7 @@ png_init_read_transformations(png_structrp png_ptr)
|
|
* transformations elsewhere.
|
|
*/
|
|
png_ptr->transformations &= ~(PNG_COMPOSE | PNG_GAMMA);
|
|
+ png_ptr->flags &= ~PNG_FLAG_OPTIMIZE_ALPHA;
|
|
} /* color_type == PNG_COLOR_TYPE_PALETTE */
|
|
|
|
/* if (png_ptr->background_gamma_type!=PNG_BACKGROUND_GAMMA_UNKNOWN) */
|
|
--
|
|
2.1.4
|
|
|