From ba1cf545df1bd789ddeaf31842971ed0a13ff932 Mon Sep 17 00:00:00 2001 From: Francois-Olivier Devaux Date: Fri, 14 Jan 2005 08:14:01 +0000 Subject: [PATCH] Bug with mj2_read_struct fixed (problem when reading MJ2 files starting with the MOOV box fixed) --- mj2/mj2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mj2/mj2.c b/mj2/mj2.c index 9d10129f..2014cf25 100644 --- a/mj2/mj2.c +++ b/mj2/mj2.c @@ -2731,8 +2731,7 @@ int mj2_read_struct(FILE *file, mj2_movie_t * movie) { mj2_read_boxhdr(&box); } - - fseek(file,-8,SEEK_CUR); + fseek(file,foffset,SEEK_SET); src = realloc(src,box.length); fsresult = fread(src,box.length,1,file); if (fsresult != 1) {