summaryrefslogtreecommitdiffstats
path: root/media/libpng/1737038.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /media/libpng/1737038.patch
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'media/libpng/1737038.patch')
-rw-r--r--media/libpng/1737038.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/media/libpng/1737038.patch b/media/libpng/1737038.patch
new file mode 100644
index 0000000000..10d6129a6e
--- /dev/null
+++ b/media/libpng/1737038.patch
@@ -0,0 +1,31 @@
+diff --git a/pngwutil.c b/pngwutil.c
+--- a/pngwutil.c
++++ b/pngwutil.c
+@@ -336,8 +336,10 @@ png_deflate_claim(png_structrp png_ptr,
+ if ((png_ptr->flags & PNG_FLAG_ZLIB_CUSTOM_STRATEGY) != 0)
+ strategy = png_ptr->zlib_strategy;
+
++#ifdef PNG_WRITE_FILTER_SUPPORTED
+ else if (png_ptr->do_filter != PNG_FILTER_NONE)
+ strategy = PNG_Z_DEFAULT_STRATEGY;
++#endif
+
+ else
+ strategy = PNG_Z_DEFAULT_NOFILTER_STRATEGY;
+@@ -828,12 +830,16 @@ png_write_IHDR(png_structrp png_ptr, png
+
+ if ((png_ptr->do_filter) == PNG_NO_FILTERS)
+ {
++#ifdef PNG_WRITE_FILTER_SUPPORTED
+ if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE ||
+ png_ptr->bit_depth < 8)
+ png_ptr->do_filter = PNG_FILTER_NONE;
+
+ else
+ png_ptr->do_filter = PNG_ALL_FILTERS;
++#else
++ png_ptr->do_filter = PNG_FILTER_NONE;
++#endif
+ }
+
+ png_ptr->mode = PNG_HAVE_IHDR; /* not READY_FOR_ZTXT */