Skip to content

Commit

Permalink
Bump zero padding with two extra zeros
Browse files Browse the repository at this point in the history
When dumping bmps to disk I would hit this limit quite fast.
  • Loading branch information
emoon committed Sep 29, 2015
1 parent 4a37422 commit bc60fb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kkapturedll/bmp_videoencoder.cpp
Expand Up @@ -97,7 +97,7 @@ void BMPVideoEncoder::WriteFrame(const unsigned char *buffer)
{
// create filename
char filename[512];
_snprintf_s(filename,sizeof(filename)/sizeof(*filename),"%s%04d.bmp",prefix,frame);
_snprintf_s(filename,sizeof(filename)/sizeof(*filename),"%s%06d.bmp",prefix,frame);

// create file, write headers+image
FILE *f = fopen(filename,"wb");
Expand Down

0 comments on commit bc60fb0

Please sign in to comment.