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:
authorAnton Khirnov <anton@khirnov.net>2021-08-08 14:02:13 +0300
committerAnton Khirnov <anton@khirnov.net>2021-08-29 19:43:01 +0300
commit4a0d918c9ef08ac4e0118d537ba561f90dfb960f (patch)
treea753058244123927906c23fb375f1c7131a82b5a /fftools/ffmpeg_filter.c
parent2f0113be3ffb566f1bb7f3140f038318c447da9f (diff)
ffmpeg: reset the dict iterator before use
Diffstat (limited to 'fftools/ffmpeg_filter.c')
-rw-r--r--fftools/ffmpeg_filter.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c
index b3f230e8b6..64d2772f5d 100644
--- a/fftools/ffmpeg_filter.c
+++ b/fftools/ffmpeg_filter.c
@@ -971,6 +971,7 @@ int configure_filtergraph(FilterGraph *fg)
fg->graph->nb_threads = filter_nbthreads;
args[0] = 0;
+ e = NULL;
while ((e = av_dict_get(ost->sws_dict, "", e,
AV_DICT_IGNORE_SUFFIX))) {
av_strlcatf(args, sizeof(args), "%s=%s:", e->key, e->value);
@@ -985,6 +986,7 @@ int configure_filtergraph(FilterGraph *fg)
}
args[0] = 0;
+ e = NULL;
while ((e = av_dict_get(ost->swr_opts, "", e,
AV_DICT_IGNORE_SUFFIX))) {
av_strlcatf(args, sizeof(args), "%s=%s:", e->key, e->value);
@@ -994,6 +996,7 @@ int configure_filtergraph(FilterGraph *fg)
av_opt_set(fg->graph, "aresample_swr_opts", args, 0);
args[0] = '\0';
+ e = NULL;
while ((e = av_dict_get(fg->outputs[0]->ost->resample_opts, "", e,
AV_DICT_IGNORE_SUFFIX))) {
av_strlcatf(args, sizeof(args), "%s=%s:", e->key, e->value);