mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 00:32:31 +00:00
fftools: Don't set default swscale flags in ffmpeg/ffprobe/ffplay
Signed-off-by: Linjie Fu <linjie.justin.fu@gmail.com>
This commit is contained in:
parent
9f14396a51
commit
5b0e6b0d82
@ -81,11 +81,6 @@ enum show_muxdemuxers {
|
|||||||
SHOW_MUXERS,
|
SHOW_MUXERS,
|
||||||
};
|
};
|
||||||
|
|
||||||
void init_opts(void)
|
|
||||||
{
|
|
||||||
av_dict_set(&sws_dict, "flags", "bicubic", 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
void uninit_opts(void)
|
void uninit_opts(void)
|
||||||
{
|
{
|
||||||
av_dict_free(&swr_opts);
|
av_dict_free(&swr_opts);
|
||||||
@ -670,7 +665,6 @@ static void finish_group(OptionParseContext *octx, int group_idx,
|
|||||||
resample_opts = NULL;
|
resample_opts = NULL;
|
||||||
sws_dict = NULL;
|
sws_dict = NULL;
|
||||||
swr_opts = NULL;
|
swr_opts = NULL;
|
||||||
init_opts();
|
|
||||||
|
|
||||||
memset(&octx->cur_group, 0, sizeof(octx->cur_group));
|
memset(&octx->cur_group, 0, sizeof(octx->cur_group));
|
||||||
}
|
}
|
||||||
@ -708,8 +702,6 @@ static void init_parse_context(OptionParseContext *octx,
|
|||||||
|
|
||||||
octx->global_opts.group_def = &global_group;
|
octx->global_opts.group_def = &global_group;
|
||||||
octx->global_opts.arg = "";
|
octx->global_opts.arg = "";
|
||||||
|
|
||||||
init_opts();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void uninit_parse_context(OptionParseContext *octx)
|
void uninit_parse_context(OptionParseContext *octx)
|
||||||
|
@ -3695,8 +3695,6 @@ int main(int argc, char **argv)
|
|||||||
#endif
|
#endif
|
||||||
avformat_network_init();
|
avformat_network_init();
|
||||||
|
|
||||||
init_opts();
|
|
||||||
|
|
||||||
signal(SIGINT , sigterm_handler); /* Interrupt (ANSI). */
|
signal(SIGINT , sigterm_handler); /* Interrupt (ANSI). */
|
||||||
signal(SIGTERM, sigterm_handler); /* Termination (ANSI). */
|
signal(SIGTERM, sigterm_handler); /* Termination (ANSI). */
|
||||||
|
|
||||||
|
@ -3721,7 +3721,6 @@ int main(int argc, char **argv)
|
|||||||
options = real_options;
|
options = real_options;
|
||||||
parse_loglevel(argc, argv, options);
|
parse_loglevel(argc, argv, options);
|
||||||
avformat_network_init();
|
avformat_network_init();
|
||||||
init_opts();
|
|
||||||
#if CONFIG_AVDEVICE
|
#if CONFIG_AVDEVICE
|
||||||
avdevice_register_all();
|
avdevice_register_all();
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user