Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
29e0879b
Commit
29e0879b
authored
6 years ago
by
Paul B Mahol
Browse files
Options
Downloads
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
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavfilter/f_drawgraph.c
+6
-6
6 additions, 6 deletions
libavfilter/f_drawgraph.c
with
6 additions
and
6 deletions
libavfilter/f_drawgraph.c
+
6
−
6
View file @
29e0879b
...
@@ -43,7 +43,7 @@ typedef struct DrawGraphContext {
...
@@ -43,7 +43,7 @@ typedef struct DrawGraphContext {
AVFrame
*
out
;
AVFrame
*
out
;
int
x
;
int
x
;
int
prev_y
[
4
];
int
prev_y
[
4
];
int
first
;
int
first
[
4
]
;
float
*
values
[
4
];
float
*
values
[
4
];
int
values_size
[
4
];
int
values_size
[
4
];
int
nb_values
;
int
nb_values
;
...
@@ -102,7 +102,7 @@ static av_cold int init(AVFilterContext *ctx)
...
@@ -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
)
{
if
(
s
->
slide
==
4
)
{
s
->
values
[
0
]
=
av_fast_realloc
(
NULL
,
&
s
->
values_size
[
0
],
2000
);
s
->
values
[
0
]
=
av_fast_realloc
(
NULL
,
&
s
->
values_size
[
0
],
2000
);
...
@@ -282,8 +282,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
...
@@ -282,8 +282,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
draw_dot
(
fg
,
x
,
y
,
out
);
draw_dot
(
fg
,
x
,
y
,
out
);
break
;
break
;
case
2
:
case
2
:
if
(
s
->
first
)
{
if
(
s
->
first
[
i
]
)
{
s
->
first
=
0
;
s
->
first
[
i
]
=
0
;
s
->
prev_y
[
i
]
=
y
;
s
->
prev_y
[
i
]
=
y
;
}
}
...
@@ -366,8 +366,8 @@ static int request_frame(AVFilterLink *outlink)
...
@@ -366,8 +366,8 @@ static int request_frame(AVFilterLink *outlink)
draw_dot
(
fg
,
x
,
y
,
out
);
draw_dot
(
fg
,
x
,
y
,
out
);
break
;
break
;
case
2
:
case
2
:
if
(
s
->
first
)
{
if
(
s
->
first
[
i
]
)
{
s
->
first
=
0
;
s
->
first
[
i
]
=
0
;
s
->
prev_y
[
i
]
=
y
;
s
->
prev_y
[
i
]
=
y
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment