Initialisation of movie->cl changed in mj2_init_stdmovie

This commit is contained in:
Francois-Olivier Devaux 2005-03-21 15:14:16 +00:00
parent 1f96f0e92a
commit 85691a02a6
1 changed files with 3 additions and 5 deletions

View File

@ -155,11 +155,9 @@ int mj2_init_stdmovie(mj2_movie_t * movie)
time_t ltime;
movie->brand = MJ2_MJ2;
movie->minversion = 0;
if (!((movie->num_cl<100) && (movie->num_cl>-1))) {
movie->num_cl = 2;
movie->cl =
(unsigned int *) malloc(movie->num_cl * sizeof(unsigned int));
}
movie->num_cl = 2;
movie->cl =
(unsigned int *) malloc(movie->num_cl * sizeof(unsigned int));
movie->cl[0] = MJ2_MJ2;
movie->cl[1] = MJ2_MJ2S;