Tested with GPAC 1.0.1 (Centos7) and GPAC git (Ubuntu 20.04)

Steps to reproduce (filesize ~4GB):
````
cd /tmp
wget http://doppelbauer.name/coredump.mp4
MP4Box -inter 500 -tmp /tmp/test -add /tmp/coredump.mp4 -new /tmp/ignore.mp4
````

Console:
```
free(): double free detected in tcache 2
aborted (core dumped)
```
Coredump: free(): double free detected in tcache 2
This is a GitHub Issue
repo:gpac
owner:gpac
Title : Coredump: free(): double free detected in tcache 2
Issue date:

--- start body ---
Tested with GPAC 1.0.1 (Centos7) and GPAC git (Ubuntu 20.04)

Steps to reproduce (filesize ~4GB):
````
cd /tmp
wget http://doppelbauer.name/coredump.mp4
MP4Box -inter 500 -tmp /tmp/test -add /tmp/coredump.mp4 -new /tmp/ignore.mp4
````

Console:
```
free(): double free detected in tcache 2
aborted (core dumped)
```
--- end body ---
