Bug with mj2_read_struct fixed (problem when reading MJ2 files starting with the MOOV box fixed)

This commit is contained in:
Francois-Olivier Devaux 2005-01-14 08:14:01 +00:00
parent bfb2f9f58b
commit ba1cf545df
1 changed files with 1 additions and 2 deletions

View File

@ -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) {