• Janne Grunau's avatar
    avconv: simplify memory allocation in copy_chapters · 18ff4d20
    Janne Grunau authored
    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.
avconv_opt.c 76.3 KB