Mercurial > hg > orthanc
diff OrthancServer/ServerContext.cpp @ 3938:54dbebbcc032 transcoding
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 18 May 2020 15:59:50 +0200 |
parents | e6606d3ec892 |
children | c205f670098e |
line wrap: on
line diff
--- a/OrthancServer/ServerContext.cpp Mon May 18 11:16:18 2020 +0200 +++ b/OrthancServer/ServerContext.cpp Mon May 18 15:59:50 2020 +0200 @@ -508,9 +508,10 @@ DicomInstanceToStore& dicom, StoreInstanceMode mode) { - //const DicomTransferSyntax option = DicomTransferSyntax_JPEGProcess1; - const DicomTransferSyntax option = DicomTransferSyntax_LittleEndianExplicit; - + const DicomTransferSyntax option = DicomTransferSyntax_JPEGProcess1; + //const DicomTransferSyntax option = DicomTransferSyntax_JPEGProcess14SV1; + //const DicomTransferSyntax option = DicomTransferSyntax_LittleEndianExplicit; + if (1) { return StoreAfterTranscoding(resultPublicId, dicom, mode); @@ -552,7 +553,8 @@ toStore.SetOrigin(dicom.GetOrigin()); StoreStatus ok = StoreAfterTranscoding(resultPublicId, toStore, mode); - printf(">> %s\n", resultPublicId.c_str()); + assert(resultPublicId == tmp->GetHasher().HashInstance()); + return ok; } }