Skip to content
Permalink
Browse files Browse the repository at this point in the history
fixed #1659
  • Loading branch information
jeanlf committed Jan 4, 2021
1 parent 96170ab commit dae9900
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/isomedia/isom_store.c
Expand Up @@ -150,8 +150,14 @@ GF_Err SetupWriters(MovieWriter *mw, GF_List *writers, u8 interleaving)

trackCount = gf_list_count(movie->moov->trackList);
for (i = 0; i < trackCount; i++) {
GF_SampleTableBox *stbl;
trak = gf_isom_get_track(movie->moov, i+1);

stbl = (trak->Media && trak->Media->information) ? trak->Media->information->sampleTable : NULL;
if (!stbl || !stbl->SampleSize || !stbl->ChunkOffset || !stbl->SampleToChunk) {
return GF_ISOM_INVALID_FILE;
}

GF_SAFEALLOC(writer, TrackWriter);
if (!writer) goto exit;
writer->sampleNumber = 1;
Expand Down

0 comments on commit dae9900

Please sign in to comment.