Skip to content

Commit

Permalink
fixing logic error
Browse files Browse the repository at this point in the history
  • Loading branch information
knopkem committed Jun 23, 2022
1 parent 0ac1ceb commit 9c96890
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions src/CompressAsyncWorker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -227,15 +227,18 @@ OFBool CompressAsyncWorker::recompress(const OFFilename &infile, const OFString
E_TransferSyntax prefXfer = _prefXfer;

// check if already compressed
if (!enableRecompression) {
if (originalXfer == EXS_Unknown ||
originalXfer == EXS_LittleEndianImplicit ||
originalXfer == EXS_BigEndianImplicit ||
originalXfer == EXS_LittleEndianExplicit ||
originalXfer == EXS_BigEndianExplicit ||
originalXfer == EXS_DeflatedLittleEndianExplicit) {
DCMNET_INFO("Not recompressing file as this is disabled...");
prefXfer = originalXfer;
if (!enableRecompression)
{
DCMIMGLE_INFO("Recompressing files is disabled");
if (originalXfer != EXS_Unknown &&
originalXfer != EXS_LittleEndianImplicit &&
originalXfer != EXS_BigEndianImplicit &&
originalXfer != EXS_LittleEndianExplicit &&
originalXfer != EXS_BigEndianExplicit &&
originalXfer != EXS_DeflatedLittleEndianExplicit)
{
DCMNET_INFO("File is compressed, not recompressing...");
prefXfer = originalXfer;
}
}

Expand Down

0 comments on commit 9c96890

Please sign in to comment.