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

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-08-08 17:47:21 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2015-08-08 17:51:25 +0300
commit5edab1d207d211962b8b0e9ffdebf774aa6ee688 (patch)
treebc424e355483a19fe99584cc115cc5a90cef2fc1 /cmdutils.c
parent408c9cf0e21d83d21865c3e27e1c44a9da30a98c (diff)
cmdutils: remove sws_opts usage, simplify code
It has become unused as all code was switched to AVDictionary Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'cmdutils.c')
-rw-r--r--cmdutils.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/cmdutils.c b/cmdutils.c
index 51fd7c9b32..5aa56f15d0 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -63,7 +63,6 @@
static int init_report(const char *env);
-struct SwsContext *sws_opts;
AVDictionary *sws_dict;
AVDictionary *swr_opts;
AVDictionary *format_opts, *codec_opts, *resample_opts;
@@ -74,20 +73,11 @@ int hide_banner = 0;
void init_opts(void)
{
-
- if(CONFIG_SWSCALE)
- sws_opts = sws_getContext(16, 16, 0, 16, 16, 0, SWS_BICUBIC,
- NULL, NULL, NULL);
av_dict_set(&sws_dict, "flags", "bicubic", 0);
}
void uninit_opts(void)
{
-#if CONFIG_SWSCALE
- sws_freeContext(sws_opts);
- sws_opts = NULL;
-#endif
-
av_dict_free(&swr_opts);
av_dict_free(&sws_dict);
av_dict_free(&format_opts);
@@ -577,11 +567,6 @@ int opt_default(void *optctx, const char *opt, const char *arg)
av_log(NULL, AV_LOG_ERROR, "Error setting option %s.\n", opt);
return ret;
}
- ret = av_opt_set(sws_opts, opt, arg, 0);
- if (ret < 0) {
- av_log(NULL, AV_LOG_ERROR, "Error setting option %s for sws_opts.\n", opt);
- return ret;
- }
av_dict_set(&sws_dict, opt, arg, FLAGS);
@@ -658,9 +643,6 @@ static void finish_group(OptionParseContext *octx, int group_idx,
*g = octx->cur_group;
g->arg = arg;
g->group_def = l->group_def;
-#if CONFIG_SWSCALE
- g->sws_opts = sws_opts;
-#endif
g->sws_dict = sws_dict;
g->swr_opts = swr_opts;
g->codec_opts = codec_opts;
@@ -670,9 +652,6 @@ static void finish_group(OptionParseContext *octx, int group_idx,
codec_opts = NULL;
format_opts = NULL;
resample_opts = NULL;
-#if CONFIG_SWSCALE
- sws_opts = NULL;
-#endif
sws_dict = NULL;
swr_opts = NULL;
init_opts();
@@ -729,9 +708,6 @@ void uninit_parse_context(OptionParseContext *octx)
av_dict_free(&l->groups[j].codec_opts);
av_dict_free(&l->groups[j].format_opts);
av_dict_free(&l->groups[j].resample_opts);
-#if CONFIG_SWSCALE
- sws_freeContext(l->groups[j].sws_opts);
-#endif
av_dict_free(&l->groups[j].sws_dict);
av_dict_free(&l->groups[j].swr_opts);