Re: [FFmpeg-devel] [PATCH 2/3] avformat/ttaenc: Defer freeing dynamic buffer

2020-05-20 Thread Andreas Rheinhardt
James Almer: > On 5/20/2020 11:36 PM, Andreas Rheinhardt wrote: >> The TTA muxer writes a seektable in a dynamic buffer as it receives >> packets and when writing the trailer, closes the dynamic buffer using >> avio_close_dyn_buf(), writes the seektable and frees the buffer. But >> the TTA muxer al

Re: [FFmpeg-devel] [PATCH 2/3] avformat/ttaenc: Defer freeing dynamic buffer

2020-05-20 Thread James Almer
On 5/20/2020 11:36 PM, Andreas Rheinhardt wrote: > The TTA muxer writes a seektable in a dynamic buffer as it receives > packets and when writing the trailer, closes the dynamic buffer using > avio_close_dyn_buf(), writes the seektable and frees the buffer. But > the TTA muxer already has a deinit

[FFmpeg-devel] [PATCH 2/3] avformat/ttaenc: Defer freeing dynamic buffer

2020-05-20 Thread Andreas Rheinhardt
The TTA muxer writes a seektable in a dynamic buffer as it receives packets and when writing the trailer, closes the dynamic buffer using avio_close_dyn_buf(), writes the seektable and frees the buffer. But the TTA muxer already has a deinit function which unconditionally calls ffio_free_dyn_buf()