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
aff6cebb
Commit
aff6cebb
authored
Apr 11, 2013
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/overlay: fix crash in case of invalid expression
parent
ed2c8275
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
vf_overlay.c
libavfilter/vf_overlay.c
+9
-4
No files found.
libavfilter/vf_overlay.c
View file @
aff6cebb
...
...
@@ -170,16 +170,21 @@ static void eval_expr(AVFilterContext *ctx, enum EvalTarget eval_tgt)
static
int
set_expr
(
AVExpr
**
pexpr
,
const
char
*
expr
,
void
*
log_ctx
)
{
int
ret
;
AVExpr
*
old
=
NULL
;
if
(
*
pexpr
)
av_expr_free
(
*
pexpr
);
*
pexpr
=
NULL
;
old
=
*
pexpr
;
ret
=
av_expr_parse
(
pexpr
,
expr
,
var_names
,
NULL
,
NULL
,
NULL
,
NULL
,
0
,
log_ctx
);
if
(
ret
<
0
)
if
(
ret
<
0
)
{
av_log
(
log_ctx
,
AV_LOG_ERROR
,
"Error when evaluating the expression '%s'
\n
"
,
expr
);
return
ret
;
*
pexpr
=
old
;
return
ret
;
}
av_expr_free
(
old
);
return
0
;
}
static
int
process_command
(
AVFilterContext
*
ctx
,
const
char
*
cmd
,
const
char
*
args
,
...
...
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