Fix for Qt Avi offset index memory reserve calculation.

This commit is contained in:
mjbudd77 2021-08-29 22:11:20 -04:00
parent f879757d27
commit 21cc75eb45
1 changed files with 2 additions and 1 deletions

View File

@ -259,7 +259,8 @@ gwavi_t::open(const char *filename, unsigned int width, unsigned int height,
goto write_chars_bin_failed;
// Reserve space for about 4 hours of offsets
offsets.reserve( 2 * 4 * 3600 );
// 2 streams * 4 hours * 60 fps * 3600 seconds per hour.
offsets.reserve( 2 * 4 * 60 * 3600 );
return 0;