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
6756d98c
Commit
6756d98c
authored
Jul 16, 2013
by
Vittorio Giovara
Committed by
Martin Storsjö
Jul 19, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi: filtfmts: use newer avfilter APIs
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
36fb0d02
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
filtfmts.c
libavfilter/filtfmts.c
+9
-1
No files found.
libavfilter/filtfmts.c
View file @
6756d98c
...
...
@@ -29,6 +29,7 @@ int main(int argc, char **argv)
{
AVFilter
*
filter
;
AVFilterContext
*
filter_ctx
;
AVFilterGraph
*
graph_ctx
;
const
char
*
filter_name
;
const
char
*
filter_args
=
NULL
;
int
i
,
j
;
...
...
@@ -44,6 +45,11 @@ int main(int argc, char **argv)
if
(
argv
[
2
])
filter_args
=
argv
[
2
];
/* allocate graph */
graph_ctx
=
avfilter_graph_alloc
();
if
(
!
graph_ctx
)
return
1
;
avfilter_register_all
();
/* get a corresponding filter and open it */
...
...
@@ -52,7 +58,8 @@ int main(int argc, char **argv)
return
1
;
}
if
(
avfilter_open
(
&
filter_ctx
,
filter
,
NULL
)
<
0
)
{
/* open filter and add it to the graph */
if
(
!
(
filter_ctx
=
avfilter_graph_alloc_filter
(
graph_ctx
,
filter
,
filter_name
)))
{
fprintf
(
stderr
,
"Impossible to open filter with name '%s'
\n
"
,
filter_name
);
return
1
;
...
...
@@ -99,6 +106,7 @@ int main(int argc, char **argv)
}
avfilter_free
(
filter_ctx
);
avfilter_graph_free
(
&
graph_ctx
);
fflush
(
stdout
);
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