summaryrefslogtreecommitdiff
path: root/src/util.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-01-27 22:38:43 +0000
committerCarl Hetherington <cth@carlh.net>2014-01-27 22:38:43 +0000
commit00e9647a9ede540f2d567c19025278c25a87c830 (patch)
tree145f7fc92cfa0670e7da304b965d30f751ab1b14 /src/util.cc
parent8c2f3517e868078b551bb01d975f2956cb692fbf (diff)
Various tweaks; work on read_dcp example.
Diffstat (limited to 'src/util.cc')
-rw-r--r--src/util.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/util.cc b/src/util.cc
index e53556e4..e26e66be 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -28,6 +28,7 @@
#include "certificates.h"
#include "gamma_lut.h"
#include "xyz_frame.h"
+#include "compose.hpp"
#include "KM_util.h"
#include "KM_fileio.h"
#include "AS_DCP.h"
@@ -39,7 +40,6 @@
#include <libxml++/document.h>
#include <openssl/sha.h>
#include <boost/filesystem.hpp>
-#include <boost/lexical_cast.hpp>
#include <stdexcept>
#include <sstream>
#include <iostream>
@@ -55,7 +55,6 @@ using std::list;
using std::setw;
using std::setfill;
using boost::shared_ptr;
-using boost::lexical_cast;
using namespace dcp;
/** Create a UUID.
@@ -211,7 +210,7 @@ dcp::decompress_j2k (uint8_t* data, int64_t size, int reduce)
if (!image) {
opj_destroy_decompress (decoder);
opj_cio_close (cio);
- boost::throw_exception (DCPReadError ("could not decode JPEG2000 codestream of " + lexical_cast<string> (size) + " bytes."));
+ boost::throw_exception (DCPReadError (String::compose ("could not decode JPEG2000 codestream of %1 bytes.", size)));
}
opj_destroy_decompress (decoder);