summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2019-09-24 17:06:10 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2019-09-25 14:53:28 +0300
commit7dd428f5c3eb6e9bf6ab2e1b902568d00f7f418d (patch)
tree7c0937ff57c60d722cd7b2ae0f7f8161b5c9daa7
parent40bc9d1095228ab1377625be3479491263d696d7 (diff)
wbm2m: use fmt::format
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r--utils/wbm2m.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/wbm2m.cpp b/utils/wbm2m.cpp
index 07074e5..71a26a5 100644
--- a/utils/wbm2m.cpp
+++ b/utils/wbm2m.cpp
@@ -6,6 +6,7 @@
#include <fstream>
#include <map>
#include <system_error>
+#include <fmt/format.h>
#include <kms++/kms++.h>
#include <kms++util/kms++util.h>
@@ -104,8 +105,8 @@ int main(int argc, char** argv)
printf("%ux%u-%s -> %ux%u-%s\n", src_width, src_height, PixelFormatToFourCC(src_fmt).c_str(),
dst_width, dst_height, PixelFormatToFourCC(dst_fmt).c_str());
- const string filename = sformat("wb-out-%ux%u_%4.4s.raw", dst_width, dst_height,
- PixelFormatToFourCC(dst_fmt).c_str());
+ const string filename = fmt::format("wb-out-{}x{}-{}.raw", dst_width, dst_height,
+ PixelFormatToFourCC(dst_fmt));
printf("writing to %s\n", filename.c_str());