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
287620f5
Commit
287620f5
authored
Dec 23, 2019
by
Gyan Doshi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/drawtext: log why input pad failed to be configured
parent
a13af9ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
vf_drawtext.c
libavfilter/vf_drawtext.c
+7
-5
No files found.
libavfilter/vf_drawtext.c
View file @
287620f5
...
...
@@ -829,6 +829,7 @@ static int config_input(AVFilterLink *inlink)
{
AVFilterContext
*
ctx
=
inlink
->
dst
;
DrawTextContext
*
s
=
ctx
->
priv
;
char
*
expr
;
int
ret
;
ff_draw_init
(
&
s
->
dc
,
inlink
->
format
,
FF_DRAW_PROCESS_ALPHA
);
...
...
@@ -854,14 +855,15 @@ static int config_input(AVFilterLink *inlink)
av_expr_free
(
s
->
a_pexpr
);
s
->
x_pexpr
=
s
->
y_pexpr
=
s
->
a_pexpr
=
NULL
;
if
((
ret
=
av_expr_parse
(
&
s
->
x_pexpr
,
s
->
x_expr
,
var_names
,
if
((
ret
=
av_expr_parse
(
&
s
->
x_pexpr
,
expr
=
s
->
x_expr
,
var_names
,
NULL
,
NULL
,
fun2_names
,
fun2
,
0
,
ctx
))
<
0
||
(
ret
=
av_expr_parse
(
&
s
->
y_pexpr
,
s
->
y_expr
,
var_names
,
(
ret
=
av_expr_parse
(
&
s
->
y_pexpr
,
expr
=
s
->
y_expr
,
var_names
,
NULL
,
NULL
,
fun2_names
,
fun2
,
0
,
ctx
))
<
0
||
(
ret
=
av_expr_parse
(
&
s
->
a_pexpr
,
s
->
a_expr
,
var_names
,
NULL
,
NULL
,
fun2_names
,
fun2
,
0
,
ctx
))
<
0
)
(
ret
=
av_expr_parse
(
&
s
->
a_pexpr
,
expr
=
s
->
a_expr
,
var_names
,
NULL
,
NULL
,
fun2_names
,
fun2
,
0
,
ctx
))
<
0
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Failed to parse expression: %s
\n
"
,
expr
);
return
AVERROR
(
EINVAL
);
}
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