summaryrefslogtreecommitdiff
path: root/pkg/pigz/patch
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2021-01-25 14:00:28 -0800
committerMichael Forney <mforney@mforney.org>2021-01-25 14:03:25 -0800
commit6aa2e073cdd76eee368139c2c982388ab0e5a10e (patch)
treeef771d2ebd36730e3eb122680f84b47e5b28066c /pkg/pigz/patch
parent7deb2d74dfac0519077d8cc42f2a8e54f85d927c (diff)
pigz: Disable ZOPFLI support
Diffstat (limited to 'pkg/pigz/patch')
-rw-r--r--pkg/pigz/patch/0002-Restructure-loop-to-prevent-warning.patch44
1 files changed, 0 insertions, 44 deletions
diff --git a/pkg/pigz/patch/0002-Restructure-loop-to-prevent-warning.patch b/pkg/pigz/patch/0002-Restructure-loop-to-prevent-warning.patch
deleted file mode 100644
index 7b3d35fd..00000000
--- a/pkg/pigz/patch/0002-Restructure-loop-to-prevent-warning.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-From 758851fab26523b69e92f2973c636647614406c2 Mon Sep 17 00:00:00 2001
-From: Michael Forney <mforney@mforney.org>
-Date: Wed, 27 Dec 2017 21:07:16 -0800
-Subject: [PATCH] Restructure loop to prevent warning
-
----
- zopfli/src/zopfli/deflate.c | 10 +++++-----
- 1 file changed, 5 insertions(+), 5 deletions(-)
-
-diff --git a/zopfli/src/zopfli/deflate.c b/zopfli/src/zopfli/deflate.c
-index 4b0724b..f3d7745 100644
---- a/zopfli/src/zopfli/deflate.c
-+++ b/zopfli/src/zopfli/deflate.c
-@@ -378,22 +378,22 @@ Change the population counts in a way that the consequent Hufmann tree
- compression, especially its rle-part will be more likely to compress this data
- more efficiently. length containts the size of the histogram.
- */
--void OptimizeHuffmanForRle(int length, size_t* counts) {
-+static void OptimizeHuffmanForRle(int length, size_t* counts) {
- int i, k, stride;
- size_t symbol, sum, limit;
- int* good_for_rle;
-
- /* 1) We don't want to touch the trailing zeros. We may break the
- rules of the format by adding more data in the distance codes. */
-- for (; length >= 0; --length) {
-- if (length == 0) {
-- return;
-- }
-+ for (; length > 0; --length) {
- if (counts[length - 1] != 0) {
- /* Now counts[0..length - 1] does not have trailing zeros. */
- break;
- }
- }
-+ if (length == 0) {
-+ return;
-+ }
- /* 2) Let's mark all population counts that already can be encoded
- with an rle code.*/
- good_for_rle = (int*)malloc(length * sizeof(int));
---
-2.15.1
-