ref: 8ec9793a9a0abc31f84f3e118deb58b00af1a158
parent: 4874e8461ed4e31d35893b2596d2c949d5d86345
author: Martin Storsjö <martin@martin.st>
date: Thu Nov 29 10:53:08 EST 2018
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.
--- 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;