]> git.sesse.net Git - ffmpeg/commit
avformat/hlsenc: Fix leak of child AVFormatContext
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 16 Dec 2019 00:04:03 +0000 (01:04 +0100)
committerSteven Liu <lq@chinaffmpeg.org>
Mon, 23 Dec 2019 06:05:26 +0000 (14:05 +0800)
commit7d6637bcc4bb6d1d554e910a4afd6cf6711f8862
tree85915b3283819504fb945fba6c038b8de388427e
parentc1e215041bb4feeb17fc1d16d5c651ca6d35ad84
avformat/hlsenc: Fix leak of child AVFormatContext

Before ed897633, the hls muxer would free its child AVFormatContexts
and reset the pointer to these contexts to NULL immediately afterwards;
ed897633 moved the former to later (into a separate function), but kept
the resetting, ensuring that the child context leaks.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Reviewed-by: Steven Liu <lq@onvideo.cn>
libavformat/hlsenc.c