summaryrefslogtreecommitdiff
path: root/mj2
diff options
context:
space:
mode:
authorFrancois-Olivier Devaux <fodevaux@users.noreply.github.com>2005-01-14 08:14:01 +0000
committerFrancois-Olivier Devaux <fodevaux@users.noreply.github.com>2005-01-14 08:14:01 +0000
commitba1cf545df1bd789ddeaf31842971ed0a13ff932 (patch)
tree2370efc49f1de94e83e8c18d3c41fa622823a4fa /mj2
parentbfb2f9f58bfa179785e9b67d21b2ea4d98d6ef8e (diff)
Bug with mj2_read_struct fixed (problem when reading MJ2 files starting with the MOOV box fixed)
Diffstat (limited to 'mj2')
-rw-r--r--mj2/mj2.c3
1 files changed, 1 insertions, 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) {