Commit 4874e846 authored by Martin Storsjö's avatar Martin Storsjö

ivf: Use int64_t instead of off_t

off_t isn't available in all environments.

On Ubuntu 16.04, GCC 5.4, glibc 2.23, off_t is defined by stdio.h
normally, but if building with -std=c99 (which dav1d does), it no
longer is defined. If fcntl.h is included additionally (which isn't
done in dav1d), it still gets defined though.

off_t isn't available in MSVC at all.
parent be15be35
......@@ -95,7 +95,7 @@ static int ivf_read(IvfInputContext *const c, Dav1dData *const buf) {
uint8_t *ptr;
int res;
const off_t off = ftello(c->f);
const int64_t off = ftello(c->f);
if ((res = fread(data, 4, 1, c->f)) != 1)
return -1; // EOF
const ptrdiff_t sz = rl32(data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment