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
e0761fee
Commit
e0761fee
authored
Apr 19, 2012
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter: add a pointer from links to graph.
parent
78ac49c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
avfilter.h
libavfilter/avfilter.h
+6
-0
avfiltergraph.c
libavfilter/avfiltergraph.c
+16
-0
No files found.
libavfilter/avfilter.h
View file @
e0761fee
...
...
@@ -690,6 +690,12 @@ struct AVFilterLink {
AVRational
time_base
;
struct
AVFilterPool
*
pool
;
/**
* Graph the filter belongs to.
*/
struct
AVFilterGraph
*
graph
;
};
/**
...
...
libavfilter/avfiltergraph.c
View file @
e0761fee
...
...
@@ -374,6 +374,21 @@ int ff_avfilter_graph_config_formats(AVFilterGraph *graph, AVClass *log_ctx)
return
0
;
}
static
void
ff_avfilter_graph_config_pointers
(
AVFilterGraph
*
graph
,
AVClass
*
log_ctx
)
{
unsigned
i
,
j
;;
AVFilterContext
*
f
;
for
(
i
=
0
;
i
<
graph
->
filter_count
;
i
++
)
{
f
=
graph
->
filters
[
i
];
for
(
j
=
0
;
j
<
f
->
input_count
;
j
++
)
f
->
inputs
[
j
]
->
graph
=
graph
;
for
(
j
=
0
;
j
<
f
->
output_count
;
j
++
)
f
->
outputs
[
j
]
->
graph
=
graph
;
}
}
int
avfilter_graph_config
(
AVFilterGraph
*
graphctx
,
void
*
log_ctx
)
{
int
ret
;
...
...
@@ -384,6 +399,7 @@ int avfilter_graph_config(AVFilterGraph *graphctx, void *log_ctx)
return
ret
;
if
((
ret
=
ff_avfilter_graph_config_links
(
graphctx
,
log_ctx
)))
return
ret
;
ff_avfilter_graph_config_pointers
(
graphctx
,
log_ctx
);
return
0
;
}
...
...
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