atomsrecovery: Error out when fseek() fails instead of silently ignoring
CID 1403262
This commit is contained in:
parent
79d9cd44b6
commit
ea4e9fc2d4
@ -673,8 +673,11 @@ moov_recov_parse_trak (MoovRecovFile * moovrf, TrakRecovData * trakrd)
|
||||
if (!moov_recov_parse_mdia (moovrf, trakrd))
|
||||
return FALSE;
|
||||
|
||||
fseek (moovrf->file, (long int) trakrd->mdia_file_offset + trakrd->mdia_size,
|
||||
SEEK_SET);
|
||||
if (fseek (moovrf->file,
|
||||
(long int) trakrd->mdia_file_offset + trakrd->mdia_size,
|
||||
SEEK_SET) != 0)
|
||||
return FALSE;
|
||||
|
||||
trakrd->extra_atoms_offset = ftell (moovrf->file);
|
||||
trakrd->extra_atoms_size = size - (trakrd->extra_atoms_offset - offset);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user