Mercurial > hg > orthanc
diff Core/DicomNetworking/DicomStoreUserConnection.cpp @ 3951:5fe8c6d3212e transcoding
removed useless information "hasSopInstanceUidChanged"
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 19 May 2020 21:06:53 +0200 |
parents | 0b3256c3ee14 |
children |
line wrap: on
line diff
--- a/Core/DicomNetworking/DicomStoreUserConnection.cpp Tue May 19 20:37:00 2020 +0200 +++ b/Core/DicomNetworking/DicomStoreUserConnection.cpp Tue May 19 21:06:53 2020 +0200 @@ -494,12 +494,13 @@ IDicomTranscoder::DicomImage source; source.AcquireParsed(dicom.release()); source.SetExternalBuffer(buffer, size); + + const std::string sourceUid = IDicomTranscoder::GetSopInstanceUid(source.GetParsed()); IDicomTranscoder::DicomImage transcoded; - bool hasSopInstanceUidChanged; - if (transcoder.Transcode(transcoded, hasSopInstanceUidChanged, source, uncompressedSyntaxes, false)) + if (transcoder.Transcode(transcoded, source, uncompressedSyntaxes, false)) { - if (hasSopInstanceUidChanged) + if (sourceUid != IDicomTranscoder::GetSopInstanceUid(transcoded.GetParsed())) { throw OrthancException(ErrorCode_Plugin, "The transcoder has changed the SOP " "instance UID while transcoding to an uncompressed transfer syntax");