diff options
author | Henrik Gramner <gramner@twoorioles.com> | 2019-02-11 21:53:01 +0300 |
---|---|---|
committer | Henrik Gramner <henrik@gramner.com> | 2019-02-11 21:53:13 +0300 |
commit | 3cf4d32e74e38b99036c21b7d2d0fb2108223221 (patch) | |
tree | d6da642f2385523fd8362bb7740a925770f77ecb /tools | |
parent | 0d18b15aa084d180aa41f3c4b2cff7bf8cb68fdc (diff) |
Use 64-bit versions of fseek and ftell
Diffstat (limited to 'tools')
-rw-r--r-- | tools/input/annexb.c | 4 | ||||
-rw-r--r-- | tools/input/ivf.c | 8 |
2 files changed, 4 insertions, 8 deletions
diff --git a/tools/input/annexb.c b/tools/input/annexb.c index e291490..11dd14b 100644 --- a/tools/input/annexb.c +++ b/tools/input/annexb.c @@ -77,9 +77,9 @@ static int annexb_open(AnnexbInputContext *const c, const char *const file, res = leb128(c, &len); if (res < 0) break; - fseek(c->f, len, SEEK_CUR); + fseeko(c->f, len, SEEK_CUR); } - fseek(c->f, 0, SEEK_SET); + fseeko(c->f, 0, SEEK_SET); return 0; } diff --git a/tools/input/ivf.c b/tools/input/ivf.c index 5faa092..495429d 100644 --- a/tools/input/ivf.c +++ b/tools/input/ivf.c @@ -36,10 +36,6 @@ #include "input/demuxer.h" -#ifdef _MSC_VER -#define ftello _ftelli64 -#endif - typedef struct DemuxerPriv { FILE *f; } IvfInputContext; @@ -85,11 +81,11 @@ static int ivf_open(IvfInputContext *const c, const char *const file, for (*num_frames = 0;; (*num_frames)++) { if ((res = fread(data, 4, 1, c->f)) != 1) break; // EOF - fseek(c->f, rl32(data) + 8, SEEK_CUR); + fseeko(c->f, rl32(data) + 8, SEEK_CUR); } fps[0] *= *num_frames; fps[1] *= duration; - fseek(c->f, 32, SEEK_SET); + fseeko(c->f, 32, SEEK_SET); return 0; } |