evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / ap / apngopt / remove-7z.patch
blob2a0bc50fb12d80542a7e3e8f8d2d593e0801ff56
1 Index: b/apngopt.cpp
2 ===================================================================
3 --- a/apngopt.cpp
4 +++ b/apngopt.cpp
5 @@ -33,7 +33,6 @@
6 #include <vector>
7 #include "png.h" /* original (unpatched) libpng is ok */
8 #include "zlib.h"
9 -#include "7z.h"
10 extern "C" {
11 #include "zopfli.h"
13 @@ -958,8 +957,6 @@ void deflate_rect_fin(int deflate_method
14 if (deflate_method == 1)
16 unsigned size = zbuf_size;
17 - compress_rfc1950_7z(rows, op[n].h*(rowbytes + 1), zbuf, size, iter<100 ? iter : 100, 255);
18 - *zsize = size;
20 else
22 @@ -1438,8 +1435,7 @@ int main(int argc, char** argv)
23 if (argc <= 1)
25 printf("\n\nUsage: apngopt [options] anim.png [anim_opt.png]\n\n"
26 - "-z0 : zlib compression\n"
27 - "-z1 : 7zip compression (default)\n"
28 + "-z0 : zlib compression (default)\n"
29 "-z2 : zopfli compression\n"
30 "-i## : number of iterations, default -i%d\n", iter);
31 return 1;
32 @@ -1459,7 +1455,7 @@ int main(int argc, char** argv)
33 if (szOpt[2] == '0')
34 deflate_method = 0;
35 if (szOpt[2] == '1')
36 - deflate_method = 1;
37 + deflate_method = 0;
38 if (szOpt[2] == '2')
39 deflate_method = 2;