mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 07:31:22 +01:00
qt-faststart: check return of ftello()
Fixes CID739863 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ed68085104
commit
4a2297294f
1 changed files with 2 additions and 2 deletions
|
|
@ -137,11 +137,11 @@ int main(int argc, char *argv[])
|
|||
goto error_out;
|
||||
}
|
||||
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) {
|
||||
perror(argv[1]);
|
||||
goto error_out;
|
||||
}
|
||||
start_offset = ftello(infile);
|
||||
} else {
|
||||
int ret;
|
||||
/* 64-bit special case */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue