Skip to content
Permalink
Browse files Browse the repository at this point in the history
fixed #1757
  • Loading branch information
jeanlf committed Apr 23, 2021
1 parent 328c6d6 commit b8f8b20
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/isomedia/box_code_base.c
Expand Up @@ -6743,6 +6743,8 @@ GF_Err trak_box_size(GF_Box *s)
GF_TrackBox *ptr = (GF_TrackBox *)s;

if (ptr->sample_encryption && ptr->sample_encryption->load_needed) {
if (!ptr->moov || !!ptr->moov->mov || !ptr->moov->mov->movieFileMap)
return GF_ISOM_INVALID_FILE;
GF_Err e = senc_Parse(ptr->moov->mov->movieFileMap->bs, ptr, NULL, ptr->sample_encryption);
if (e) return e;
}
Expand Down

0 comments on commit b8f8b20

Please sign in to comment.