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
29e0879b
Commit
29e0879b
authored
Jun 03, 2018
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/f_drawgraph: fix drawing of first point for non-first metadata key
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
98328853
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
f_drawgraph.c
libavfilter/f_drawgraph.c
+6
-6
No files found.
libavfilter/f_drawgraph.c
View file @
29e0879b
...
...
@@ -43,7 +43,7 @@ typedef struct DrawGraphContext {
AVFrame
*
out
;
int
x
;
int
prev_y
[
4
];
int
first
;
int
first
[
4
]
;
float
*
values
[
4
];
int
values_size
[
4
];
int
nb_values
;
...
...
@@ -102,7 +102,7 @@ static av_cold int init(AVFilterContext *ctx)
}
}
s
->
first
=
1
;
s
->
first
[
0
]
=
s
->
first
[
1
]
=
s
->
first
[
2
]
=
s
->
first
[
3
]
=
1
;
if
(
s
->
slide
==
4
)
{
s
->
values
[
0
]
=
av_fast_realloc
(
NULL
,
&
s
->
values_size
[
0
],
2000
);
...
...
@@ -282,8 +282,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
draw_dot
(
fg
,
x
,
y
,
out
);
break
;
case
2
:
if
(
s
->
first
)
{
s
->
first
=
0
;
if
(
s
->
first
[
i
]
)
{
s
->
first
[
i
]
=
0
;
s
->
prev_y
[
i
]
=
y
;
}
...
...
@@ -366,8 +366,8 @@ static int request_frame(AVFilterLink *outlink)
draw_dot
(
fg
,
x
,
y
,
out
);
break
;
case
2
:
if
(
s
->
first
)
{
s
->
first
=
0
;
if
(
s
->
first
[
i
]
)
{
s
->
first
[
i
]
=
0
;
s
->
prev_y
[
i
]
=
y
;
}
...
...
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