summaryrefslogtreecommitdiff
path: root/mj2
diff options
context:
space:
mode:
authorFrancois-Olivier Devaux <fodevaux@users.noreply.github.com>2005-04-19 09:18:51 +0000
committerFrancois-Olivier Devaux <fodevaux@users.noreply.github.com>2005-04-19 09:18:51 +0000
commit81f688433de65e2a604f2394c85bf271e577bd3a (patch)
treecbbaf09571e9da5571b8d820c481ce499099df3e /mj2
parent0130af0ff4239e236791c61060309fead6dea260 (diff)
bug while freeing memory (mj2_free) fixed
Diffstat (limited to 'mj2')
-rw-r--r--mj2/extract_j2k_from_mj2.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mj2/extract_j2k_from_mj2.c b/mj2/extract_j2k_from_mj2.c
index 86ce02ad..adf81393 100644
--- a/mj2/extract_j2k_from_mj2.c
+++ b/mj2/extract_j2k_from_mj2.c
@@ -16,7 +16,8 @@ jmp_buf j2k_error;
int main(int argc, char *argv[]) {
- unsigned int tnum, snum;
+ int tnum;
+ unsigned int snum;
mj2_movie_t movie;
mj2_tk_t *track;
mj2_sample_t *sample;
@@ -40,6 +41,8 @@ int main(int argc, char *argv[]) {
if (mj2_read_struct(file, &movie)) // Creating the movie structure
return 1;
+ mj2_init_stdmovie(&movie);
+
// Decode first video track
tnum = 0;
while (movie.tk[tnum].track_type != 0)