Skip to content
Permalink
Browse files Browse the repository at this point in the history
fixed #1661
  • Loading branch information
jeanlf committed Jan 4, 2021
1 parent a4eb327 commit 5aba276
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/isomedia/isom_store.c
Expand Up @@ -102,6 +102,9 @@ void CleanWriters(GF_List *writers)
{
while (gf_list_count(writers)) {
TrackWriter *writer = (TrackWriter*)gf_list_get(writers, 0);
//in case we have an error in the middle of file write, remove our created stco and stsc from sample table
gf_list_del_item(writer->stbl->child_boxes, writer->stco);
gf_list_del_item(writer->stbl->child_boxes, writer->stsc);
gf_isom_box_del(writer->stco);
gf_isom_box_del((GF_Box *)writer->stsc);
gf_free(writer);
Expand Down

0 comments on commit 5aba276

Please sign in to comment.