projects
/
openjpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Bug with mj2_read_struct fixed (problem when reading MJ2 files starting with the...
[openjpeg.git]
/
mj2
/
mj2.c
diff --git
a/mj2/mj2.c
b/mj2/mj2.c
index 9d10129f967714df667a1f075d06adc244d0dd58..2014cf257012c5b8251db01336599fdd21232bda 100644
(file)
--- 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) {