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
b99bef17
Commit
b99bef17
authored
Jan 02, 2013
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/avfiltergraph: check pick_format return code.
parent
82deb0c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
avfiltergraph.c
libavfilter/avfiltergraph.c
+6
-3
No files found.
libavfilter/avfiltergraph.c
View file @
b99bef17
...
@@ -795,7 +795,8 @@ static int pick_formats(AVFilterGraph *graph)
...
@@ -795,7 +795,8 @@ static int pick_formats(AVFilterGraph *graph)
if
(
filter
->
nb_inputs
){
if
(
filter
->
nb_inputs
){
for
(
j
=
0
;
j
<
filter
->
nb_inputs
;
j
++
){
for
(
j
=
0
;
j
<
filter
->
nb_inputs
;
j
++
){
if
(
filter
->
inputs
[
j
]
->
in_formats
&&
filter
->
inputs
[
j
]
->
in_formats
->
format_count
==
1
)
{
if
(
filter
->
inputs
[
j
]
->
in_formats
&&
filter
->
inputs
[
j
]
->
in_formats
->
format_count
==
1
)
{
pick_format
(
filter
->
inputs
[
j
],
NULL
);
if
((
ret
=
pick_format
(
filter
->
inputs
[
j
],
NULL
))
<
0
)
return
ret
;
change
=
1
;
change
=
1
;
}
}
}
}
...
@@ -803,7 +804,8 @@ static int pick_formats(AVFilterGraph *graph)
...
@@ -803,7 +804,8 @@ static int pick_formats(AVFilterGraph *graph)
if
(
filter
->
nb_outputs
){
if
(
filter
->
nb_outputs
){
for
(
j
=
0
;
j
<
filter
->
nb_outputs
;
j
++
){
for
(
j
=
0
;
j
<
filter
->
nb_outputs
;
j
++
){
if
(
filter
->
outputs
[
j
]
->
in_formats
&&
filter
->
outputs
[
j
]
->
in_formats
->
format_count
==
1
)
{
if
(
filter
->
outputs
[
j
]
->
in_formats
&&
filter
->
outputs
[
j
]
->
in_formats
->
format_count
==
1
)
{
pick_format
(
filter
->
outputs
[
j
],
NULL
);
if
((
ret
=
pick_format
(
filter
->
outputs
[
j
],
NULL
))
<
0
)
return
ret
;
change
=
1
;
change
=
1
;
}
}
}
}
...
@@ -811,7 +813,8 @@ static int pick_formats(AVFilterGraph *graph)
...
@@ -811,7 +813,8 @@ static int pick_formats(AVFilterGraph *graph)
if
(
filter
->
nb_inputs
&&
filter
->
nb_outputs
&&
filter
->
inputs
[
0
]
->
format
>=
0
)
{
if
(
filter
->
nb_inputs
&&
filter
->
nb_outputs
&&
filter
->
inputs
[
0
]
->
format
>=
0
)
{
for
(
j
=
0
;
j
<
filter
->
nb_outputs
;
j
++
)
{
for
(
j
=
0
;
j
<
filter
->
nb_outputs
;
j
++
)
{
if
(
filter
->
outputs
[
j
]
->
format
<
0
)
{
if
(
filter
->
outputs
[
j
]
->
format
<
0
)
{
pick_format
(
filter
->
outputs
[
j
],
filter
->
inputs
[
0
]);
if
((
ret
=
pick_format
(
filter
->
outputs
[
j
],
filter
->
inputs
[
0
]))
<
0
)
return
ret
;
change
=
1
;
change
=
1
;
}
}
}
}
...
...
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