diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-03-01 16:54:35 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-03-01 16:55:16 +0400 |
commit | 11c4bc9a744b16b5c297b7d302c9abac1b34b689 (patch) | |
tree | 2ae7103601f115ef8287c2d465d9260d0569e515 /tools/qt-faststart.c | |
parent | 0bb474f686fb33ef731e34972e48b82dfbf82984 (diff) | |
parent | 5612244351b2eb3cb4e6225861a0f55aa5d0c475 (diff) |
Merge commit '5612244351b2eb3cb4e6225861a0f55aa5d0c475'
* commit '5612244351b2eb3cb4e6225861a0f55aa5d0c475':
qt-faststart: Check fseeko() return codes
Conflicts:
tools/qt-faststart.c
See: 0de41ead6f9034e0a834abe51028a02aee094990
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'tools/qt-faststart.c')
-rw-r--r-- | tools/qt-faststart.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/qt-faststart.c b/tools/qt-faststart.c index ffaeac0b6c..fc82abaf9c 100644 --- a/tools/qt-faststart.c +++ b/tools/qt-faststart.c @@ -137,9 +137,9 @@ int main(int argc, char *argv[]) atom_size); goto error_out; } - if ( fseeko(infile, -ATOM_PREAMBLE_SIZE, SEEK_CUR) - || fread(ftyp_atom, atom_size, 1, infile) != 1 - || (start_offset = ftello(infile))<0) { + if (fseeko(infile, -ATOM_PREAMBLE_SIZE, SEEK_CUR) || + fread(ftyp_atom, atom_size, 1, infile) != 1 || + (start_offset = ftello(infile))<0) { perror(argv[1]); goto error_out; } @@ -155,7 +155,7 @@ int main(int argc, char *argv[]) } else { ret = fseeko(infile, atom_size - ATOM_PREAMBLE_SIZE, SEEK_CUR); } - if(ret) { + if (ret) { perror(argv[1]); goto error_out; } |