Commit 11c4bc9a authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '56122443'

* commit '56122443':
  qt-faststart: Check fseeko() return codes

Conflicts:
	tools/qt-faststart.c

See: 0de41eadMerged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 0bb474f6 56122443
...@@ -137,9 +137,9 @@ int main(int argc, char *argv[]) ...@@ -137,9 +137,9 @@ int main(int argc, char *argv[])
atom_size); atom_size);
goto error_out; goto error_out;
} }
if ( fseeko(infile, -ATOM_PREAMBLE_SIZE, SEEK_CUR) if (fseeko(infile, -ATOM_PREAMBLE_SIZE, SEEK_CUR) ||
|| fread(ftyp_atom, atom_size, 1, infile) != 1 fread(ftyp_atom, atom_size, 1, infile) != 1 ||
|| (start_offset = ftello(infile))<0) { (start_offset = ftello(infile))<0) {
perror(argv[1]); perror(argv[1]);
goto error_out; goto error_out;
} }
...@@ -155,7 +155,7 @@ int main(int argc, char *argv[]) ...@@ -155,7 +155,7 @@ int main(int argc, char *argv[])
} else { } else {
ret = fseeko(infile, atom_size - ATOM_PREAMBLE_SIZE, SEEK_CUR); ret = fseeko(infile, atom_size - ATOM_PREAMBLE_SIZE, SEEK_CUR);
} }
if(ret) { if (ret) {
perror(argv[1]); perror(argv[1]);
goto error_out; goto error_out;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment