Fix a bug in file creation
This commit is contained in:
parent
221b158aba
commit
7cf55041a0
|
@ -239,7 +239,7 @@ bool encode_frame(kvz_picture* input, int& rvalue, std::ofstream& outputFile, co
|
||||||
|
|
||||||
// write the size of the chunks into the file also. This makes the files unusable for normal
|
// write the size of the chunks into the file also. This makes the files unusable for normal
|
||||||
// viewing. It would be better to write the sizes to a separate file
|
// viewing. It would be better to write the sizes to a separate file
|
||||||
outputFile << written;
|
outputFile.write((char*)(&written), sizeof(uint64_t));
|
||||||
|
|
||||||
// write the chunks into the file
|
// write the chunks into the file
|
||||||
for (kvz_data_chunk* chunk = chunks_out; chunk != nullptr; chunk = chunk->next) {
|
for (kvz_data_chunk* chunk = chunks_out; chunk != nullptr; chunk = chunk->next) {
|
||||||
|
|
Loading…
Reference in New Issue