video thumbnails

This commit is contained in:
rexy712
2019-03-05 14:19:32 -08:00
parent 6f078c8495
commit df9eac1206
8 changed files with 314 additions and 80 deletions
+3 -2
View File
@@ -20,8 +20,9 @@ namespace raii{
return ::operator new(size);
}
static void* copy(const void* c, size_t size){
void* tmp = allocate(size);
memcpy(tmp, c, size);
char* tmp = reinterpret_cast<char*>(allocate(size));
memcpy(tmp, c, size-1);
tmp[size-1] = 0;
return tmp;
}
};