diff options
| author | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2005-04-19 09:17:55 +0000 |
|---|---|---|
| committer | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2005-04-19 09:17:55 +0000 |
| commit | 0130af0ff4239e236791c61060309fead6dea260 (patch) | |
| tree | 05ee6af00bd555bc89ab485c87a424ae25960572 /mj2 | |
| parent | 2cbcbb25b0ea33ae228e840d216f628329e92650 (diff) | |
Bug while writing huge MOOV boxes fixed. Thanks to Valentin Mesaros !
Diffstat (limited to 'mj2')
| -rw-r--r-- | mj2/wrap_j2k_in_mj2.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mj2/wrap_j2k_in_mj2.c b/mj2/wrap_j2k_in_mj2.c index 44feefa0..e777220b 100644 --- a/mj2/wrap_j2k_in_mj2.c +++ b/mj2/wrap_j2k_in_mj2.c @@ -149,7 +149,7 @@ int main(int argc, char *argv[]) { char *buf; int offset, mdat_initpos; j2k_image_t img; - int pos, i; + int i; if (argc != 3) { printf("Bad syntax: Usage: MJ2_Wrapper source_location mj2_filename\n"); @@ -264,10 +264,8 @@ int main(int argc, char *argv[]) { cio_init(buf , i*10000); if (setjmp(j2k_error)) { i++; - realloc(buf,i*10000* sizeof(char)); - pos = cio_tell(); + buf = realloc(buf,i*10000* sizeof(char)); cio_init(buf , i*10000); - cio_seek(pos); } mj2_write_moov(&movie); fwrite(buf,cio_tell(),1,mj2file); |
