Hi EveryOne,
I am trying to write avi file, and am having problem. The problem that i am having is that i am send each frame, size and OutputAviFile to a function... Something like this. but i have to write more the one frame to the avifile. so when a add another frame it over write the old one. is there anyway to set a postion from where i can start writing
Code:
void avi_add(ofstream &OutputAviFile, unsigned char *buff, int size)
{
DBBREAKS db;
strcpy(db.db,"00db");
db.size = size;
OutputAviFile.write(reinterpret_cast<char *>(&db),sizeof(db));
OutputAviFile.write(buff,db.size);
}