diff options
author | don bright <hugh.m.bright@gmail.com> | 2013-01-24 03:13:45 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2013-01-24 03:13:45 (GMT) |
commit | cf32594c9e9bd728a72eeca8299e83e7616b30e9 (patch) | |
tree | 8a1b271c76d8b84e683286e55786814ed267495d /src/lodepng.cpp | |
parent | ed24425305d1404dc7ecfc227feddb9c0c56a66f (diff) |
add lodepng.cpp, fix compiler warnings, fix qmake buildfile
Diffstat (limited to 'src/lodepng.cpp')
-rw-r--r-- | src/lodepng.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lodepng.cpp b/src/lodepng.cpp index 831194f..9d21668 100644 --- a/src/lodepng.cpp +++ b/src/lodepng.cpp @@ -1497,7 +1497,7 @@ static unsigned encodeLZ77(uivector* out, const unsigned char* in, size_t insize unsigned length, tablepos; #ifdef LAZY_MATCHING unsigned lazy = 0; - unsigned lazylength, lazyoffset; + unsigned lazylength = 0, lazyoffset = 0; #endif /*LAZY_MATCHING*/ unsigned hash, initialZeros = 0; unsigned backpos, current_offset, t1, t2, t11, current_length; @@ -4679,7 +4679,7 @@ static unsigned filter(unsigned char* out, const unsigned char* in, unsigned w, This is very slow and gives only slightly smaller, sometimes even larger, result*/ size_t size[5]; ucvector attempt[5]; /*five filtering attempts, one for each filter type*/ - size_t smallest; + size_t smallest = 0; unsigned type = 0, bestType = 0; unsigned char* dummy; LodePNG_CompressSettings zlibsettings = settings->zlibsettings; |