mirror of https://github.com/FFmpeg/FFmpeg.git
Make just a single reallocation per call instead of one reallocation per copied chapters. This fixes possible memory leaks on realloc failures. Also correct the allocation since it needs multiples of sizeof(AVChapter*) and not sizeof(AVChapter). Fixes CID700633 and CID700719.pull/6/head
parent
4ffbe3f3a5
commit
18ff4d2020
1 changed files with 7 additions and 5 deletions
Loading…
Reference in new issue