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
7659ee35
Commit
7659ee35
authored
Aug 25, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/graphdump: fix use of deprecated symbols
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
f12174c8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
graphdump.c
libavfilter/graphdump.c
+7
-7
No files found.
libavfilter/graphdump.c
View file @
7659ee35
...
...
@@ -71,14 +71,14 @@ static void avfilter_graph_dump_to_buf(AVBPrint *buf, AVFilterGraph *graph)
unsigned
lname
=
strlen
(
filter
->
name
);
unsigned
ltype
=
strlen
(
filter
->
filter
->
name
);
for
(
j
=
0
;
j
<
filter
->
input_count
;
j
++
)
{
for
(
j
=
0
;
j
<
filter
->
nb_inputs
;
j
++
)
{
AVFilterLink
*
l
=
filter
->
inputs
[
j
];
unsigned
ln
=
strlen
(
l
->
src
->
name
)
+
1
+
strlen
(
l
->
srcpad
->
name
);
max_src_name
=
FFMAX
(
max_src_name
,
ln
);
max_in_name
=
FFMAX
(
max_in_name
,
strlen
(
l
->
dstpad
->
name
));
max_in_fmt
=
FFMAX
(
max_in_fmt
,
print_link_prop
(
NULL
,
l
));
}
for
(
j
=
0
;
j
<
filter
->
output_count
;
j
++
)
{
for
(
j
=
0
;
j
<
filter
->
nb_outputs
;
j
++
)
{
AVFilterLink
*
l
=
filter
->
outputs
[
j
];
unsigned
ln
=
strlen
(
l
->
dst
->
name
)
+
1
+
strlen
(
l
->
dstpad
->
name
);
max_dst_name
=
FFMAX
(
max_dst_name
,
ln
);
...
...
@@ -88,17 +88,17 @@ static void avfilter_graph_dump_to_buf(AVBPrint *buf, AVFilterGraph *graph)
in_indent
=
max_src_name
+
max_in_name
+
max_in_fmt
;
in_indent
+=
in_indent
?
4
:
0
;
width
=
FFMAX
(
lname
+
2
,
ltype
+
4
);
height
=
FFMAX3
(
2
,
filter
->
input_count
,
filter
->
output_count
);
height
=
FFMAX3
(
2
,
filter
->
nb_inputs
,
filter
->
nb_outputs
);
av_bprint_chars
(
buf
,
' '
,
in_indent
);
av_bprintf
(
buf
,
"+"
);
av_bprint_chars
(
buf
,
'-'
,
width
);
av_bprintf
(
buf
,
"+
\n
"
);
for
(
j
=
0
;
j
<
height
;
j
++
)
{
unsigned
in_no
=
j
-
(
height
-
filter
->
input_count
)
/
2
;
unsigned
out_no
=
j
-
(
height
-
filter
->
output_count
)
/
2
;
unsigned
in_no
=
j
-
(
height
-
filter
->
nb_inputs
)
/
2
;
unsigned
out_no
=
j
-
(
height
-
filter
->
nb_outputs
)
/
2
;
/* Input link */
if
(
in_no
<
filter
->
input_count
)
{
if
(
in_no
<
filter
->
nb_inputs
)
{
AVFilterLink
*
l
=
filter
->
inputs
[
in_no
];
e
=
buf
->
len
+
max_src_name
+
2
;
av_bprintf
(
buf
,
"%s:%s"
,
l
->
src
->
name
,
l
->
srcpad
->
name
);
...
...
@@ -127,7 +127,7 @@ static void avfilter_graph_dump_to_buf(AVBPrint *buf, AVFilterGraph *graph)
av_bprintf
(
buf
,
"|"
);
/* Output link */
if
(
out_no
<
filter
->
output_count
)
{
if
(
out_no
<
filter
->
nb_outputs
)
{
AVFilterLink
*
l
=
filter
->
outputs
[
out_no
];
unsigned
ln
=
strlen
(
l
->
dst
->
name
)
+
1
+
strlen
(
l
->
dstpad
->
name
);
...
...
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