[FFmpeg-devel] [PATCH v4] Patch for memory optimization with QuickTime/MP4
Moritz Barsnick
barsnick at gmx.net
Mon Dec 9 14:19:04 EET 2019
On Mon, Dec 09, 2019 at 13:15:40 +0100, Moritz Barsnick wrote:
> > + case AVMEDIA_TYPE_SUBTITLE:
> > + /* Freeing VIDEO tables leads to corrupted video when writing to eg. MKV */
> > + av_freep(&st->index_entries);
> > + st->nb_index_entries = 0;
>
> av_freep() NULLs for you.
Forget this one, I misread it. ;-)
>
> > + av_freep(&sc->ctts_data);
> > + sc->ctts_data = NULL;
>
> Ditto.
But my comment applies here.
Moritz
More information about the ffmpeg-devel
mailing list