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
88b160a4
Commit
88b160a4
authored
Feb 23, 2015
by
Himangi Saraogi
Committed by
Diego Biurrun
Mar 05, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter: Return more meaningful error codes
Signed-off-by:
Diego Biurrun
<
diego@biurrun.de
>
parent
ad786dd4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
avfilter.c
libavfilter/avfilter.c
+4
-3
No files found.
libavfilter/avfilter.c
View file @
88b160a4
...
@@ -79,7 +79,7 @@ int avfilter_link(AVFilterContext *src, unsigned srcpad,
...
@@ -79,7 +79,7 @@ int avfilter_link(AVFilterContext *src, unsigned srcpad,
if
(
src
->
nb_outputs
<=
srcpad
||
dst
->
nb_inputs
<=
dstpad
||
if
(
src
->
nb_outputs
<=
srcpad
||
dst
->
nb_inputs
<=
dstpad
||
src
->
outputs
[
srcpad
]
||
dst
->
inputs
[
dstpad
])
src
->
outputs
[
srcpad
]
||
dst
->
inputs
[
dstpad
])
return
-
1
;
return
AVERROR
(
EINVAL
)
;
if
(
src
->
output_pads
[
srcpad
].
type
!=
dst
->
input_pads
[
dstpad
].
type
)
{
if
(
src
->
output_pads
[
srcpad
].
type
!=
dst
->
input_pads
[
dstpad
].
type
)
{
av_log
(
src
,
AV_LOG_ERROR
,
av_log
(
src
,
AV_LOG_ERROR
,
...
@@ -254,7 +254,8 @@ int ff_request_frame(AVFilterLink *link)
...
@@ -254,7 +254,8 @@ int ff_request_frame(AVFilterLink *link)
return
link
->
srcpad
->
request_frame
(
link
);
return
link
->
srcpad
->
request_frame
(
link
);
else
if
(
link
->
src
->
inputs
[
0
])
else
if
(
link
->
src
->
inputs
[
0
])
return
ff_request_frame
(
link
->
src
->
inputs
[
0
]);
return
ff_request_frame
(
link
->
src
->
inputs
[
0
]);
else
return
-
1
;
else
return
AVERROR
(
EINVAL
);
}
}
int
ff_poll_frame
(
AVFilterLink
*
link
)
int
ff_poll_frame
(
AVFilterLink
*
link
)
...
@@ -267,7 +268,7 @@ int ff_poll_frame(AVFilterLink *link)
...
@@ -267,7 +268,7 @@ int ff_poll_frame(AVFilterLink *link)
for
(
i
=
0
;
i
<
link
->
src
->
nb_inputs
;
i
++
)
{
for
(
i
=
0
;
i
<
link
->
src
->
nb_inputs
;
i
++
)
{
int
val
;
int
val
;
if
(
!
link
->
src
->
inputs
[
i
])
if
(
!
link
->
src
->
inputs
[
i
])
return
-
1
;
return
AVERROR
(
EINVAL
)
;
val
=
ff_poll_frame
(
link
->
src
->
inputs
[
i
]);
val
=
ff_poll_frame
(
link
->
src
->
inputs
[
i
]);
min
=
FFMIN
(
min
,
val
);
min
=
FFMIN
(
min
,
val
);
}
}
...
...
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