From da51745369a444db53a1e376843dd4236ca49b3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sch=C3=B6ps?= Date: Sat, 11 Aug 2018 01:23:34 +0200 Subject: [PATCH] Write correct number of frames --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index ca46fb2..eaeef3e 100644 --- a/main.cpp +++ b/main.cpp @@ -61,7 +61,7 @@ void convertToKlg( std::string filename = strKlgFileName;//"test2.klg"; FILE * logFile = fopen(filename.c_str(), "wb+"); - int32_t numFrames = (int32_t)vec_info.size() - 1; + int32_t numFrames = (int32_t)vec_info.size(); fwrite(&numFrames, sizeof(int32_t), 1, logFile);