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
072916d9
Commit
072916d9
authored
Aug 02, 2014
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
filtfmts: Replace deprecated uses of AVFilterPad
Also add missing mem.h header for av_freep().
parent
6a928293
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
filtfmts.c
libavfilter/filtfmts.c
+6
-4
No files found.
libavfilter/filtfmts.c
View file @
072916d9
...
...
@@ -20,7 +20,9 @@
#include <stdio.h>
#include "libavutil/mem.h"
#include "libavutil/pixdesc.h"
#include "libavfilter/avfilter.h"
#include "libavfilter/formats.h"
...
...
@@ -72,12 +74,12 @@ int main(int argc, char **argv)
/* create a link for each of the input pads */
for
(
i
=
0
;
i
<
filter_ctx
->
nb_inputs
;
i
++
)
{
AVFilterLink
*
link
=
av_mallocz
(
sizeof
(
AVFilterLink
));
link
->
type
=
filter_ctx
->
filter
->
inputs
[
i
].
type
;
link
->
type
=
avfilter_pad_get_type
(
filter_ctx
->
filter
->
inputs
,
i
)
;
filter_ctx
->
inputs
[
i
]
=
link
;
}
for
(
i
=
0
;
i
<
filter_ctx
->
nb_outputs
;
i
++
)
{
AVFilterLink
*
link
=
av_mallocz
(
sizeof
(
AVFilterLink
));
link
->
type
=
filter_ctx
->
filter
->
outputs
[
i
].
type
;
link
->
type
=
avfilter_pad_get_type
(
filter_ctx
->
filter
->
outputs
,
i
)
;
filter_ctx
->
outputs
[
i
]
=
link
;
}
...
...
@@ -91,7 +93,7 @@ int main(int argc, char **argv)
AVFilterFormats
*
fmts
=
filter_ctx
->
inputs
[
i
]
->
out_formats
;
for
(
j
=
0
;
j
<
fmts
->
nb_formats
;
j
++
)
printf
(
"INPUT[%d] %s: %s
\n
"
,
i
,
filter_ctx
->
filter
->
inputs
[
i
].
name
,
i
,
avfilter_pad_get_name
(
filter_ctx
->
filter
->
inputs
,
i
)
,
av_get_pix_fmt_name
(
fmts
->
formats
[
j
]));
}
...
...
@@ -100,7 +102,7 @@ int main(int argc, char **argv)
AVFilterFormats
*
fmts
=
filter_ctx
->
outputs
[
i
]
->
in_formats
;
for
(
j
=
0
;
j
<
fmts
->
nb_formats
;
j
++
)
printf
(
"OUTPUT[%d] %s: %s
\n
"
,
i
,
filter_ctx
->
filter
->
outputs
[
i
].
name
,
i
,
avfilter_pad_get_name
(
filter_ctx
->
filter
->
outputs
,
i
)
,
av_get_pix_fmt_name
(
fmts
->
formats
[
j
]));
}
...
...
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