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
0773f673
Commit
0773f673
authored
Apr 09, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vsrc_life: Fix mix of declarations and statements
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
df4fca21
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
vsrc_life.c
libavfilter/vsrc_life.c
+3
-1
No files found.
libavfilter/vsrc_life.c
View file @
0773f673
...
@@ -415,6 +415,8 @@ static int query_formats(AVFilterContext *ctx)
...
@@ -415,6 +415,8 @@ static int query_formats(AVFilterContext *ctx)
{
{
LifeContext
*
life
=
ctx
->
priv
;
LifeContext
*
life
=
ctx
->
priv
;
enum
AVPixelFormat
pix_fmts
[]
=
{
AV_PIX_FMT_NONE
,
AV_PIX_FMT_NONE
};
enum
AVPixelFormat
pix_fmts
[]
=
{
AV_PIX_FMT_NONE
,
AV_PIX_FMT_NONE
};
AVFilterFormats
*
fmts_list
;
if
(
life
->
mold
||
memcmp
(
life
->
life_color
,
"
\xff\xff\xff
"
,
3
)
if
(
life
->
mold
||
memcmp
(
life
->
life_color
,
"
\xff\xff\xff
"
,
3
)
||
memcmp
(
life
->
death_color
,
"
\x00\x00\x00
"
,
3
))
{
||
memcmp
(
life
->
death_color
,
"
\x00\x00\x00
"
,
3
))
{
pix_fmts
[
0
]
=
AV_PIX_FMT_RGB24
;
pix_fmts
[
0
]
=
AV_PIX_FMT_RGB24
;
...
@@ -424,7 +426,7 @@ static int query_formats(AVFilterContext *ctx)
...
@@ -424,7 +426,7 @@ static int query_formats(AVFilterContext *ctx)
life
->
draw
=
fill_picture_monoblack
;
life
->
draw
=
fill_picture_monoblack
;
}
}
AVFilterFormats
*
fmts_list
=
ff_make_format_list
(
pix_fmts
);
fmts_list
=
ff_make_format_list
(
pix_fmts
);
if
(
!
fmts_list
)
if
(
!
fmts_list
)
return
AVERROR
(
ENOMEM
);
return
AVERROR
(
ENOMEM
);
ff_set_common_formats
(
ctx
,
fmts_list
);
ff_set_common_formats
(
ctx
,
fmts_list
);
...
...
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