Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2018-11-29 16:53:08 +0300
committerMartin Storsjö <martin@martin.st>2018-11-29 16:57:14 +0300
commit8ec9793a9a0abc31f84f3e118deb58b00af1a158 (patch)
tree3b3b8df76c7930443f871e75a541dcdc23a15f50 /tools/input
parent4874e8461ed4e31d35893b2596d2c949d5d86345 (diff)
ivf: Use _ftelli64 instead of ftello for MSVC
ftello isn't available on MSVC. On MinGW, both ftello and _ftelli64 are available. MinGW provides the _ftelli64 even on msvcrt versions that don't actually have such a function by providing a statically linked wrapper. But since the ftello function also is available (also provided as a similar wrapper), keep using that.
Diffstat (limited to 'tools/input')
-rw-r--r--tools/input/ivf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/input/ivf.c b/tools/input/ivf.c
index e52dae8..dd85494 100644
--- a/tools/input/ivf.c
+++ b/tools/input/ivf.c
@@ -36,6 +36,10 @@
#include "input/demuxer.h"
+#ifdef _MSC_VER
+#define ftello _ftelli64
+#endif
+
typedef struct DemuxerPriv {
FILE *f;
} IvfInputContext;