diff options
| author | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2005-01-14 08:14:01 +0000 |
|---|---|---|
| committer | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2005-01-14 08:14:01 +0000 |
| commit | ba1cf545df1bd789ddeaf31842971ed0a13ff932 (patch) | |
| tree | 2370efc49f1de94e83e8c18d3c41fa622823a4fa /mj2 | |
| parent | bfb2f9f58bfa179785e9b67d21b2ea4d98d6ef8e (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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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) { |
