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

Paul B Mahol onemda at gmail.com
Sun Sep 20 12:01:46 EEST 2020


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 mentioned above or if the framerate or samplerate are
> invalid. This is fixed by adding a deinit function to free said fifo.
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> ---
>  libavformat/swfenc.c | 24 +++++++++++-------------
>  1 file changed, 11 insertions(+), 13 deletions(-)
> 

probably ok


More information about the ffmpeg-devel mailing list