Re: [FFmpeg-devel] [PATCH 2/3] avformat/mpeg: Don't copy or leak string in AVBPrint

2019-12-05 Thread Andreas Rheinhardt
Michael Niedermayer: > On Wed, Dec 04, 2019 at 01:37:13PM +0100, Andreas Rheinhardt wrote: >> vobsub_read_header() uses an AVBPrint to write a string and up until >> now, it collected the string stored in the AVBPrint via >> av_bprint_finalize(), which might involve an allocation and copy of the

Re: [FFmpeg-devel] [PATCH 2/3] avformat/mpeg: Don't copy or leak string in AVBPrint

2019-12-05 Thread Michael Niedermayer
On Wed, Dec 04, 2019 at 01:37:13PM +0100, Andreas Rheinhardt wrote: > vobsub_read_header() uses an AVBPrint to write a string and up until > now, it collected the string stored in the AVBPrint via > av_bprint_finalize(), which might involve an allocation and copy of the > string. But this is