Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-12-02 18:41:09 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-12-03 12:46:01 +0300
commit531d289cfd853567df69d5eb490425677e3759b9 (patch)
treebd6f4d4680e2baf1bf722b27a79afc135fe2284c /libavdevice/lavfi.c
parent05c924a86db04e05831876dd2720093dcc2dc8e1 (diff)
avdevice/lavfi: Properly free an AVDictionary
It is not documented that freeing the last (and only) entry of an AVDictionary frees the dictionary. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavdevice/lavfi.c')
-rw-r--r--libavdevice/lavfi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c
index 826dafbd00..d9083ad984 100644
--- a/libavdevice/lavfi.c
+++ b/libavdevice/lavfi.c
@@ -150,7 +150,7 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx)
if (avctx->protocol_whitelist && (ret = av_dict_set(&options, "protocol_whitelist", avctx->protocol_whitelist, 0)) < 0)
goto end;
ret = avio_open2(&avio, lavfi->graph_filename, AVIO_FLAG_READ, &avctx->interrupt_callback, &options);
- av_dict_set(&options, "protocol_whitelist", NULL, 0);
+ av_dict_free(&options);
if (ret < 0)
goto end;
av_bprint_init(&graph_file_pb, 0, AV_BPRINT_SIZE_UNLIMITED);