Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fftools: Don't set default swscale flags in ffmpeg/ffprobe/ffplay
Signed-off-by: Linjie Fu <linjie.justin.fu@gmail.com>
  • Loading branch information
fulinjie committed Aug 5, 2021
1 parent 9f14396 commit 5b0e6b0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
8 changes: 0 additions & 8 deletions fftools/cmdutils.c
Expand Up @@ -81,11 +81,6 @@ enum show_muxdemuxers {
SHOW_MUXERS,
};

void init_opts(void)
{
av_dict_set(&sws_dict, "flags", "bicubic", 0);
}

void uninit_opts(void)
{
av_dict_free(&swr_opts);
Expand Down Expand Up @@ -670,7 +665,6 @@ static void finish_group(OptionParseContext *octx, int group_idx,
resample_opts = NULL;
sws_dict = NULL;
swr_opts = NULL;
init_opts();

memset(&octx->cur_group, 0, sizeof(octx->cur_group));
}
Expand Down Expand Up @@ -708,8 +702,6 @@ static void init_parse_context(OptionParseContext *octx,

octx->global_opts.group_def = &global_group;
octx->global_opts.arg = "";

init_opts();
}

void uninit_parse_context(OptionParseContext *octx)
Expand Down
2 changes: 0 additions & 2 deletions fftools/ffplay.c
Expand Up @@ -3695,8 +3695,6 @@ int main(int argc, char **argv)
#endif
avformat_network_init();

init_opts();

signal(SIGINT , sigterm_handler); /* Interrupt (ANSI). */
signal(SIGTERM, sigterm_handler); /* Termination (ANSI). */

Expand Down
1 change: 0 additions & 1 deletion fftools/ffprobe.c
Expand Up @@ -3721,7 +3721,6 @@ int main(int argc, char **argv)
options = real_options;
parse_loglevel(argc, argv, options);
avformat_network_init();
init_opts();
#if CONFIG_AVDEVICE
avdevice_register_all();
#endif
Expand Down

1 comment on commit 5b0e6b0

@qq2225936589
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

void init_opts(void) in cmdutils.h file, maybe redundant.

Please sign in to comment.