aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-06 02:47:48 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-01-11 15:15:53 +0100
commit91b06840247273755630e75f76b9931467847ee8 (patch)
tree34003fce6c53fb8d3f4d1e686b95cd1c15d28ec7
parente7201aa246047676bb398f21ddda273026d8fb83 (diff)
downloadffmpeg-91b06840247273755630e75f76b9931467847ee8.tar.gz
avformat/tee: Fix leak of FIFO-options dictionary
Happened for all slaves which didn't use the FIFO. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> (cherry picked from commit 3a27fcb168af07f168e58577f6b3696a8fe74803)
-rw-r--r--libavformat/tee.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/tee.c b/libavformat/tee.c
index c04706ce9a..6fafc0a99d 100644
--- a/libavformat/tee.c
+++ b/libavformat/tee.c
@@ -124,6 +124,7 @@ static int close_slave(TeeSlave *tee_slave)
unsigned i;
int ret = 0;
+ av_dict_free(&tee_slave->fifo_options);
avf = tee_slave->avf;
if (!avf)
return 0;
@@ -229,6 +230,7 @@ static int open_slave(AVFormatContext *avf, char *slave, TeeSlave *tee_slave)
av_dict_free(&options);
options = tee_slave->fifo_options;
+ tee_slave->fifo_options = NULL;
}
ret = avformat_alloc_output_context2(&avf2, NULL,
tee_slave->use_fifo ? "fifo" :format, filename);