From 417ef3d1f8f1fbe2d461151381b13121754ebe01 Mon Sep 17 00:00:00 2001 From: dborth Date: Sun, 20 Sep 2009 01:38:58 +0000 Subject: [PATCH] oggplayer fix --- source/ngc/oggplayer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/ngc/oggplayer.c b/source/ngc/oggplayer.c index a180380..689160d 100644 --- a/source/ngc/oggplayer.c +++ b/source/ngc/oggplayer.c @@ -87,8 +87,10 @@ static int f_read(void * punt, int bytes, int blocks, int *f) return c / bytes; } -static int f_seek(int *f, long offset, int mode) +static int f_seek(int *f, ogg_int64_t offset, int mode) { + if(f==NULL) return(-1); + int k, d; mode &= 3; if (*f >= 0x666 && *f <= 0x669)