You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
ffmpeg: reset the dict iterator before use
This commit is contained in:
@@ -971,6 +971,7 @@ int configure_filtergraph(FilterGraph *fg)
|
|||||||
fg->graph->nb_threads = filter_nbthreads;
|
fg->graph->nb_threads = filter_nbthreads;
|
||||||
|
|
||||||
args[0] = 0;
|
args[0] = 0;
|
||||||
|
e = NULL;
|
||||||
while ((e = av_dict_get(ost->sws_dict, "", e,
|
while ((e = av_dict_get(ost->sws_dict, "", e,
|
||||||
AV_DICT_IGNORE_SUFFIX))) {
|
AV_DICT_IGNORE_SUFFIX))) {
|
||||||
av_strlcatf(args, sizeof(args), "%s=%s:", e->key, e->value);
|
av_strlcatf(args, sizeof(args), "%s=%s:", e->key, e->value);
|
||||||
@@ -985,6 +986,7 @@ int configure_filtergraph(FilterGraph *fg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
args[0] = 0;
|
args[0] = 0;
|
||||||
|
e = NULL;
|
||||||
while ((e = av_dict_get(ost->swr_opts, "", e,
|
while ((e = av_dict_get(ost->swr_opts, "", e,
|
||||||
AV_DICT_IGNORE_SUFFIX))) {
|
AV_DICT_IGNORE_SUFFIX))) {
|
||||||
av_strlcatf(args, sizeof(args), "%s=%s:", e->key, e->value);
|
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);
|
av_opt_set(fg->graph, "aresample_swr_opts", args, 0);
|
||||||
|
|
||||||
args[0] = '\0';
|
args[0] = '\0';
|
||||||
|
e = NULL;
|
||||||
while ((e = av_dict_get(fg->outputs[0]->ost->resample_opts, "", e,
|
while ((e = av_dict_get(fg->outputs[0]->ost->resample_opts, "", e,
|
||||||
AV_DICT_IGNORE_SUFFIX))) {
|
AV_DICT_IGNORE_SUFFIX))) {
|
||||||
av_strlcatf(args, sizeof(args), "%s=%s:", e->key, e->value);
|
av_strlcatf(args, sizeof(args), "%s=%s:", e->key, e->value);
|
||||||
|
Reference in New Issue
Block a user