Skip to content

Commit

Permalink
Merge commit '63848854256a024a19435e87d6bc76fffa65e81e'
Browse files Browse the repository at this point in the history
* commit '63848854256a024a19435e87d6bc76fffa65e81e':
  qt-faststart: Check the ftello() return codes

Conflicts:
	tools/qt-faststart.c

See: 4a22972
Merged-by: Michael Niedermayer <michaelni@gmx.at>
  • Loading branch information
michaelni committed Mar 1, 2014
2 parents 817f813 + 6384885 commit 77c2352
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/qt-faststart.c
Expand Up @@ -139,7 +139,7 @@ int main(int argc, char *argv[])
}
if (fseeko(infile, -ATOM_PREAMBLE_SIZE, SEEK_CUR) ||
fread(ftyp_atom, atom_size, 1, infile) != 1 ||
(start_offset = ftello(infile))<0) {
(start_offset = ftello(infile)) < 0) {
perror(argv[1]);
goto error_out;
}
Expand Down Expand Up @@ -203,6 +203,10 @@ int main(int argc, char *argv[])
goto error_out;
}
last_offset = ftello(infile);
if (last_offset < 0) {
perror(argv[1]);
goto error_out;
}
moov_atom_size = atom_size;
moov_atom = malloc(moov_atom_size);
if (!moov_atom) {
Expand Down

0 comments on commit 77c2352

Please sign in to comment.