summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/source/filter/png/pngread.cxx2
-rw-r--r--vcl/source/filter/png/pngwrite.cxx6
2 files changed, 2 insertions, 6 deletions
diff --git a/vcl/source/filter/png/pngread.cxx b/vcl/source/filter/png/pngread.cxx
index c53ea879368f..286b2680d1df 100644
--- a/vcl/source/filter/png/pngread.cxx
+++ b/vcl/source/filter/png/pngread.cxx
@@ -904,7 +904,7 @@ void PNGReaderImpl::ImplReadIDAT()
if ( !mbzCodecInUse )
{
mbzCodecInUse = true;
- mpZCodec.BeginCompression( ZCODEC_NO_COMPRESSION, true );
+ mpZCodec.BeginCompression( ZCODEC_NO_COMPRESSION );
}
mpZCodec.SetBreak( mnChunkLen );
SvMemoryStream aIStrm( &(*maDataIter), mnChunkLen, StreamMode::READ );
diff --git a/vcl/source/filter/png/pngwrite.cxx b/vcl/source/filter/png/pngwrite.cxx
index 1449ce8da9b5..8190c1efd38a 100644
--- a/vcl/source/filter/png/pngwrite.cxx
+++ b/vcl/source/filter/png/pngwrite.cxx
@@ -83,7 +83,6 @@ private:
sal_uInt8 mnFilterType; // 0 or 4;
sal_uLong mnBBP; // bytes per pixel ( needed for filtering )
bool mbTrueAlpha;
- sal_uLong mnCRC;
void ImplWritepHYs(const BitmapEx& rBitmapEx);
void ImplWriteIDAT();
@@ -112,7 +111,6 @@ PNGWriterImpl::PNGWriterImpl( const BitmapEx& rBitmapEx,
, mnFilterType(0)
, mnBBP(0)
, mbTrueAlpha(false)
- , mnCRC(0)
{
if (!rBitmapEx.IsEmpty())
{
@@ -396,8 +394,7 @@ void PNGWriterImpl::ImplWriteIDAT()
mpCurrentScan.reset(new sal_uInt8[mnDeflateInSize]);
ImplClearFirstScanline();
}
- mpZCodec.BeginCompression(mnCompLevel, true);
- mpZCodec.SetCRC(mnCRC);
+ mpZCodec.BeginCompression(mnCompLevel);
SvMemoryStream aOStm;
if (mnInterlaced == 0)
{
@@ -461,7 +458,6 @@ void PNGWriterImpl::ImplWriteIDAT()
}
}
mpZCodec.EndCompression();
- mnCRC = mpZCodec.GetCRC();
if (mnFilterType) // using filter type 4 we need memory for the scanline 3 times
{