Fix more compile warnings

This commit is contained in:
Jasmine Iwanek
2023-08-14 18:59:02 -04:00
parent 1811115b65
commit 375f69ed61
10 changed files with 91 additions and 89 deletions

View File

@@ -439,14 +439,12 @@ MVHDAPI int
mvhd_file_is_vhd(FILE* f)
{
uint8_t con_str[8];
size_t res;
if (f == NULL) {
return 0;
}
mvhd_fseeko64(f, -MVHD_FOOTER_SIZE, SEEK_END);
res = fread(con_str, sizeof con_str, 1, f);
if (mvhd_is_conectix_str(con_str)) {
return 1;
}