summaryrefslogtreecommitdiff
path: root/utils/wbm2m.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/wbm2m.cpp')
-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());