Re: [FFmpeg-devel] [PATCH 1/2] avformat/swfenc: Fix memleak upon write_header error

2020-09-20 Thread Paul B Mahol
On Sun, Sep 20, 2020 at 09:43:45AM +0200, Andreas Rheinhardt wrote: > The SWF muxer accepts at most one mp3 audio and at most one VP6F, FLV1 > or MJPEG stream. Upon encountering an mp3 stream, a fifo is allocated > that leaks if one of the subsequent streams is incompliant with the > restrictions m

[FFmpeg-devel] [PATCH 1/2] avformat/swfenc: Fix memleak upon write_header error

2020-09-20 Thread Andreas Rheinhardt
The SWF muxer accepts at most one mp3 audio and at most one VP6F, FLV1 or MJPEG stream. Upon encountering an mp3 stream, a fifo is allocated that leaks if one of the subsequent streams is incompliant with the restrictions mentioned above or if the framerate or samplerate are invalid. This is fixed