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
ac84c1ce
Commit
ac84c1ce
authored
Oct 20, 2014
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter: check filter link validity
Remove now redundant check. CC: libav-stable@libav.org Bug-Id: CID 700371
parent
ef363ebd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
avfilter.c
libavfilter/avfilter.c
+6
-1
No files found.
libavfilter/avfilter.c
View file @
ac84c1ce
...
...
@@ -152,6 +152,11 @@ int avfilter_config_links(AVFilterContext *filter)
AVFilterLink
*
link
=
filter
->
inputs
[
i
];
if
(
!
link
)
continue
;
if
(
!
link
->
src
||
!
link
->
dst
)
{
av_log
(
filter
,
AV_LOG_ERROR
,
"Not all input and output are properly linked (%d).
\n
"
,
i
);
return
AVERROR
(
EINVAL
);
}
switch
(
link
->
init_state
)
{
case
AVLINK_INIT
:
...
...
@@ -181,7 +186,7 @@ int avfilter_config_links(AVFilterContext *filter)
}
if
(
link
->
time_base
.
num
==
0
&&
link
->
time_base
.
den
==
0
)
link
->
time_base
=
link
->
src
&&
link
->
src
->
nb_inputs
?
link
->
time_base
=
link
->
src
->
nb_inputs
?
link
->
src
->
inputs
[
0
]
->
time_base
:
AV_TIME_BASE_Q
;
if
(
link
->
type
==
AVMEDIA_TYPE_VIDEO
)
{
...
...
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