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
d40e2c7a
Commit
d40e2c7a
authored
Aug 30, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfiltergraph: kill uninitialized variable warning
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
5e363bb9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
avfiltergraph.c
libavfilter/avfiltergraph.c
+2
-1
No files found.
libavfilter/avfiltergraph.c
View file @
d40e2c7a
...
@@ -630,7 +630,7 @@ static void swap_channel_layouts_on_filter(AVFilterContext *filter)
...
@@ -630,7 +630,7 @@ static void swap_channel_layouts_on_filter(AVFilterContext *filter)
for
(
i
=
0
;
i
<
filter
->
nb_outputs
;
i
++
)
{
for
(
i
=
0
;
i
<
filter
->
nb_outputs
;
i
++
)
{
AVFilterLink
*
outlink
=
filter
->
outputs
[
i
];
AVFilterLink
*
outlink
=
filter
->
outputs
[
i
];
int
best_idx
,
best_score
=
INT_MIN
,
best_count_diff
=
INT_MAX
;
int
best_idx
=
-
1
,
best_score
=
INT_MIN
,
best_count_diff
=
INT_MAX
;
if
(
outlink
->
type
!=
AVMEDIA_TYPE_AUDIO
||
if
(
outlink
->
type
!=
AVMEDIA_TYPE_AUDIO
||
outlink
->
in_channel_layouts
->
nb_channel_layouts
<
2
)
outlink
->
in_channel_layouts
->
nb_channel_layouts
<
2
)
...
@@ -679,6 +679,7 @@ static void swap_channel_layouts_on_filter(AVFilterContext *filter)
...
@@ -679,6 +679,7 @@ static void swap_channel_layouts_on_filter(AVFilterContext *filter)
best_count_diff
=
count_diff
;
best_count_diff
=
count_diff
;
}
}
}
}
av_assert1
(
best_idx
>=
0
);
FFSWAP
(
uint64_t
,
outlink
->
in_channel_layouts
->
channel_layouts
[
0
],
FFSWAP
(
uint64_t
,
outlink
->
in_channel_layouts
->
channel_layouts
[
0
],
outlink
->
in_channel_layouts
->
channel_layouts
[
best_idx
]);
outlink
->
in_channel_layouts
->
channel_layouts
[
best_idx
]);
}
}
...
...
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