Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
89cf5bf3
Commit
89cf5bf3
authored
May 30, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmdutils: replace 1 line #ifs by if()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
bf6fb563
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
cmdutils.c
cmdutils.c
+10
-9
No files found.
cmdutils.c
View file @
89cf5bf3
...
...
@@ -65,13 +65,13 @@ static FILE *report_file;
void
init_opts
(
void
)
{
#if CONFIG_SWSCALE
sws_opts
=
sws_getContext
(
16
,
16
,
0
,
16
,
16
,
0
,
SWS_BICUBIC
,
if
(
CONFIG_SWSCALE
)
sws_opts
=
sws_getContext
(
16
,
16
,
0
,
16
,
16
,
0
,
SWS_BICUBIC
,
NULL
,
NULL
,
NULL
);
#endif
#if CONFIG_SWRESAMPLE
swr_opts
=
swr_alloc
();
#endif
if
(
CONFIG_SWRESAMPLE
)
swr_opts
=
swr_alloc
();
}
void
uninit_opts
(
void
)
...
...
@@ -80,9 +80,10 @@ void uninit_opts(void)
sws_freeContext
(
sws_opts
);
sws_opts
=
NULL
;
#endif
#if CONFIG_SWRESAMPLE
swr_free
(
&
swr_opts
);
#endif
if
(
CONFIG_SWRESAMPLE
)
swr_free
(
&
swr_opts
);
av_dict_free
(
&
format_opts
);
av_dict_free
(
&
codec_opts
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment