Skip to content

Commit

Permalink
fix png
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonRuonanWang committed Oct 19, 2021
1 parent eb36755 commit 6d42fa4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/adios2/operator/compress/CompressPNG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ size_t CompressPNG::Compress(const char *dataIn, const Dims &blockStart,
PutParameter(bufferOut, paramOffset,
static_cast<uint8_t>(PNG_LIBPNG_VER_RELEASE));

const size_t sizeIn =
helper::GetTotalSize(blockCount, helper::GetDataTypeSize(varType));
if (sizeIn < destInfo.Offset)
{
std::cerr
Expand Down

0 comments on commit 6d42fa4

Please sign in to comment.