Bug with mj2_read_struct fixed (problem when reading MJ2 files starting with the MOOV box fixed)
This commit is contained in:
parent
bfb2f9f58b
commit
ba1cf545df
|
@ -2731,8 +2731,7 @@ int mj2_read_struct(FILE *file, mj2_movie_t * movie) {
|
||||||
mj2_read_boxhdr(&box);
|
mj2_read_boxhdr(&box);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fseek(file,foffset,SEEK_SET);
|
||||||
fseek(file,-8,SEEK_CUR);
|
|
||||||
src = realloc(src,box.length);
|
src = realloc(src,box.length);
|
||||||
fsresult = fread(src,box.length,1,file);
|
fsresult = fread(src,box.length,1,file);
|
||||||
if (fsresult != 1) {
|
if (fsresult != 1) {
|
||||||
|
|
Loading…
Reference in New Issue