Skip to content

Commit

Permalink
Merge pull request #117 from ViktorWalter/binary_file_read_fix
Browse files Browse the repository at this point in the history
Binary transformation file read fix
  • Loading branch information
georgmartius authored Jan 7, 2024
2 parents cbe3d5c + 1fe9f83 commit d6ed6d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/serialize.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ int vsReadFileVersionBinary(FILE* f){
unsigned char version;
VSMotionDetectConfig conf;

if(fscanf(f, "TRF%hhu\n", &version)!=LIBVIDSTAB_FILE_FORMAT_VERSION) goto parse_error_handling;
if(fscanf(f, "TRF%hhu", &version)!=LIBVIDSTAB_FILE_FORMAT_VERSION) goto parse_error_handling;
if(readInt32(&conf.accuracy, f)<=0) goto parse_error_handling;
if(readInt32(&conf.shakiness, f)<=0) goto parse_error_handling;
if(readInt32(&conf.stepSize, f)<=0) goto parse_error_handling;
Expand Down

0 comments on commit d6ed6d2

Please sign in to comment.