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
39e2b029
Commit
39e2b029
authored
Jun 20, 2007
by
Ramiro Polla
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set error parameter for ff_parse
Originally committed as revision 9377 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
6de4aece
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
imlib2.c
vhook/imlib2.c
+13
-12
No files found.
vhook/imlib2.c
View file @
39e2b029
...
...
@@ -204,6 +204,7 @@ int Configure(void **ctxp, int argc, char *argv[])
char
*
color
=
0
;
FILE
*
f
;
char
*
p
;
char
*
error
;
*
ctxp
=
av_mallocz
(
sizeof
(
ContextInfo
));
ci
=
(
ContextInfo
*
)
*
ctxp
;
...
...
@@ -331,23 +332,23 @@ int Configure(void **ctxp, int argc, char *argv[])
return
-
1
;
}
}
else
if
(
ci
->
eval_colors
)
{
if
(
!
(
ci
->
eval_r
=
ff_parse
(
ci
->
expr_R
,
const_names
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
))){
av_log
(
NULL
,
AV_LOG_ERROR
,
"Couldn't parse R expression '%s'
\n
"
,
ci
->
expr_R
);
if
(
!
(
ci
->
eval_r
=
ff_parse
(
ci
->
expr_R
,
const_names
,
NULL
,
NULL
,
NULL
,
NULL
,
&
error
))){
av_log
(
NULL
,
AV_LOG_ERROR
,
"Couldn't parse R expression '%s'
: %s
\n
"
,
ci
->
expr_R
,
error
);
return
-
1
;
}
if
(
!
(
ci
->
eval_g
=
ff_parse
(
ci
->
expr_G
,
const_names
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
))){
av_log
(
NULL
,
AV_LOG_ERROR
,
"Couldn't parse G expression '%s'
\n
"
,
ci
->
expr_G
);
if
(
!
(
ci
->
eval_g
=
ff_parse
(
ci
->
expr_G
,
const_names
,
NULL
,
NULL
,
NULL
,
NULL
,
&
error
))){
av_log
(
NULL
,
AV_LOG_ERROR
,
"Couldn't parse G expression '%s'
: %s
\n
"
,
ci
->
expr_G
,
error
);
return
-
1
;
}
if
(
!
(
ci
->
eval_b
=
ff_parse
(
ci
->
expr_B
,
const_names
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
))){
av_log
(
NULL
,
AV_LOG_ERROR
,
"Couldn't parse B expression '%s'
\n
"
,
ci
->
expr_B
);
if
(
!
(
ci
->
eval_b
=
ff_parse
(
ci
->
expr_B
,
const_names
,
NULL
,
NULL
,
NULL
,
NULL
,
&
error
))){
av_log
(
NULL
,
AV_LOG_ERROR
,
"Couldn't parse B expression '%s'
: %s
\n
"
,
ci
->
expr_B
,
error
);
return
-
1
;
}
}
if
(
ci
->
expr_A
)
{
if
(
!
(
ci
->
eval_a
=
ff_parse
(
ci
->
expr_A
,
const_names
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
))){
av_log
(
NULL
,
AV_LOG_ERROR
,
"Couldn't parse A expression '%s'
\n
"
,
ci
->
expr_A
);
if
(
!
(
ci
->
eval_a
=
ff_parse
(
ci
->
expr_A
,
const_names
,
NULL
,
NULL
,
NULL
,
NULL
,
&
error
))){
av_log
(
NULL
,
AV_LOG_ERROR
,
"Couldn't parse A expression '%s'
: %s
\n
"
,
ci
->
expr_A
,
error
);
return
-
1
;
}
}
else
{
...
...
@@ -369,13 +370,13 @@ int Configure(void **ctxp, int argc, char *argv[])
ci
->
imageOverlaid_height
=
imlib_image_get_height
();
}
if
(
!
(
ci
->
eval_x
=
ff_parse
(
ci
->
expr_x
,
const_names
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
))){
av_log
(
NULL
,
AV_LOG_ERROR
,
"Couldn't parse x expression '%s'
\n
"
,
ci
->
expr_x
);
if
(
!
(
ci
->
eval_x
=
ff_parse
(
ci
->
expr_x
,
const_names
,
NULL
,
NULL
,
NULL
,
NULL
,
&
error
))){
av_log
(
NULL
,
AV_LOG_ERROR
,
"Couldn't parse x expression '%s'
: %s
\n
"
,
ci
->
expr_x
,
error
);
return
-
1
;
}
if
(
!
(
ci
->
eval_y
=
ff_parse
(
ci
->
expr_y
,
const_names
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
))){
av_log
(
NULL
,
AV_LOG_ERROR
,
"Couldn't parse y expression '%s'
\n
"
,
ci
->
expr_y
);
if
(
!
(
ci
->
eval_y
=
ff_parse
(
ci
->
expr_y
,
const_names
,
NULL
,
NULL
,
NULL
,
NULL
,
&
error
))){
av_log
(
NULL
,
AV_LOG_ERROR
,
"Couldn't parse y expression '%s'
: %s
\n
"
,
ci
->
expr_y
,
error
);
return
-
1
;
}
...
...
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