Skip to content

Commit

Permalink
Fixed #2611
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanlf committed Oct 12, 2023
1 parent 91e787d commit c70f49d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/isomedia/movie_fragments.c
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,7 @@ u32 UpdateRuns(GF_ISOFile *movie, GF_TrackFragmentBox *traf)
while (gf_list_count(traf->TrackRuns)) {
trun = (GF_TrackFragmentRunBox *)gf_list_get(traf->TrackRuns, 0);
gf_list_rem(traf->TrackRuns, 0);
gf_list_del_item(movie->moof->trun_list, trun);
gf_isom_box_del_parent(&traf->child_boxes, (GF_Box *)trun);
}
traf->tfhd->flags |= GF_ISOM_TRAF_DUR_EMPTY;
Expand Down Expand Up @@ -643,6 +644,7 @@ u32 UpdateRuns(GF_ISOFile *movie, GF_TrackFragmentBox *traf)
if (!first_ent) {
i--;
gf_list_rem(traf->TrackRuns, i);
gf_list_del_item(movie->moof->trun_list, trun);
continue;
}
trun->flags = 0;
Expand Down

0 comments on commit c70f49d

Please sign in to comment.