summaryrefslogtreecommitdiff
path: root/fftools/cmdutils.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-03 13:54:45 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-03 16:08:19 +0200
commitf3f9041302203e458d720028e6f82fb4fb51d8e1 (patch)
tree0183cefb31bbc6bebbca008a58e9c5ba0c9367bb /fftools/cmdutils.c
parent11d39873abcddf2f1aad2cdfadccbdb41b80d5af (diff)
downloadffmpeg-f3f9041302203e458d720028e6f82fb4fb51d8e1.tar.gz
fftools: Remove remnants of resample_opts
These were intended to pass options to auto-inserted avresample resampling filters. Yet FFmpeg uses swresample for this purpose (with its own AVDictionary swr_opts similar to resample_opts). Therefore said options were not forwarded any more since commit 911417f0b34e611bf084319c5b5a4e4e630da940; moreover since commit 420cedd49745b284c35d97b936b71ff79b43bdf7 avresample options are not even recognized and ignored any more. Yet there are still remnants of all of this. This commit gets rid of them. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'fftools/cmdutils.c')
-rw-r--r--fftools/cmdutils.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c
index ae341184f6..c0d802dd52 100644
--- a/fftools/cmdutils.c
+++ b/fftools/cmdutils.c
@@ -68,7 +68,7 @@ static int init_report(const char *env);
AVDictionary *sws_dict;
AVDictionary *swr_opts;
-AVDictionary *format_opts, *codec_opts, *resample_opts;
+AVDictionary *format_opts, *codec_opts;
static FILE *report_file;
static int report_file_level = AV_LOG_DEBUG;
@@ -86,7 +86,6 @@ void uninit_opts(void)
av_dict_free(&sws_dict);
av_dict_free(&format_opts);
av_dict_free(&codec_opts);
- av_dict_free(&resample_opts);
}
void log_callback_help(void *ptr, int level, const char *fmt, va_list vl)
@@ -657,11 +656,9 @@ static void finish_group(OptionParseContext *octx, int group_idx,
g->swr_opts = swr_opts;
g->codec_opts = codec_opts;
g->format_opts = format_opts;
- g->resample_opts = resample_opts;
codec_opts = NULL;
format_opts = NULL;
- resample_opts = NULL;
sws_dict = NULL;
swr_opts = NULL;
@@ -714,7 +711,6 @@ void uninit_parse_context(OptionParseContext *octx)
av_freep(&l->groups[j].opts);
av_dict_free(&l->groups[j].codec_opts);
av_dict_free(&l->groups[j].format_opts);
- av_dict_free(&l->groups[j].resample_opts);
av_dict_free(&l->groups[j].sws_dict);
av_dict_free(&l->groups[j].swr_opts);
@@ -826,7 +822,7 @@ do { \
return AVERROR_OPTION_NOT_FOUND;
}
- if (octx->cur_group.nb_opts || codec_opts || format_opts || resample_opts)
+ if (octx->cur_group.nb_opts || codec_opts || format_opts)
av_log(NULL, AV_LOG_WARNING, "Trailing option(s) found in the "
"command: may be ignored.\n");