Commit 89cf5bf3 authored by Michael Niedermayer's avatar Michael Niedermayer

cmdutils: replace 1 line #ifs by if()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent bf6fb563
...@@ -65,13 +65,13 @@ static FILE *report_file; ...@@ -65,13 +65,13 @@ static FILE *report_file;
void init_opts(void) void init_opts(void)
{ {
#if CONFIG_SWSCALE
if(CONFIG_SWSCALE)
sws_opts = sws_getContext(16, 16, 0, 16, 16, 0, SWS_BICUBIC, sws_opts = sws_getContext(16, 16, 0, 16, 16, 0, SWS_BICUBIC,
NULL, NULL, NULL); NULL, NULL, NULL);
#endif
#if CONFIG_SWRESAMPLE if(CONFIG_SWRESAMPLE)
swr_opts = swr_alloc(); swr_opts = swr_alloc();
#endif
} }
void uninit_opts(void) void uninit_opts(void)
...@@ -80,9 +80,10 @@ void uninit_opts(void) ...@@ -80,9 +80,10 @@ void uninit_opts(void)
sws_freeContext(sws_opts); sws_freeContext(sws_opts);
sws_opts = NULL; sws_opts = NULL;
#endif #endif
#if CONFIG_SWRESAMPLE
if(CONFIG_SWRESAMPLE)
swr_free(&swr_opts); swr_free(&swr_opts);
#endif
av_dict_free(&format_opts); av_dict_free(&format_opts);
av_dict_free(&codec_opts); av_dict_free(&codec_opts);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment