Skip to content
Permalink
Browse files Browse the repository at this point in the history
fixed #1766 (fuzz)
  • Loading branch information
jeanlf committed Apr 30, 2021
1 parent eb71812 commit 328def7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/isomedia/media.c
Expand Up @@ -674,7 +674,6 @@ GF_Err Media_GetSample(GF_MediaBox *mdia, u32 sampleNumber, GF_ISOSample **samp,

GF_Err Media_CheckDataEntry(GF_MediaBox *mdia, u32 dataEntryIndex)
{

GF_DataEntryURLBox *entry;
GF_DataMap *map;
GF_Err e;
Expand All @@ -685,8 +684,10 @@ GF_Err Media_CheckDataEntry(GF_MediaBox *mdia, u32 dataEntryIndex)
if (entry->flags == 1) return GF_OK;

//ok, not self contained, let's go for it...
//we don't know what's a URN yet
if (entry->type == GF_ISOM_BOX_TYPE_URN) return GF_NOT_SUPPORTED;
//we only support alias and URL boxes
if ((entry->type != GF_ISOM_BOX_TYPE_URL) && (entry->type != GF_QT_BOX_TYPE_ALIS) )
return GF_NOT_SUPPORTED;

if (mdia->mediaTrack->moov->mov->openMode == GF_ISOM_OPEN_WRITE) {
e = gf_isom_datamap_new(entry->location, NULL, GF_ISOM_DATA_MAP_READ, &map);
} else {
Expand Down

0 comments on commit 328def7

Please sign in to comment.