Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
eb6b6d7f
Commit
eb6b6d7f
authored
Mar 03, 2012
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vsrc_life: free option values.
parent
f8210f89
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
vsrc_life.c
libavfilter/vsrc_life.c
+4
-0
No files found.
libavfilter/vsrc_life.c
View file @
eb6b6d7f
...
...
@@ -177,6 +177,7 @@ static int init_pattern_from_file(AVFilterContext *ctx)
if
((
ret
=
av_file_map
(
life
->
filename
,
&
life
->
file_buf
,
&
life
->
file_bufsize
,
0
,
ctx
))
<
0
)
return
ret
;
av_freep
(
&
life
->
filename
);
/* prescan file to get the number of lines and the maximum width */
w
=
0
;
...
...
@@ -243,6 +244,7 @@ static int init(AVFilterContext *ctx, const char *args, void *opaque)
av_log
(
ctx
,
AV_LOG_ERROR
,
"Invalid frame rate: %s
\n
"
,
life
->
rate
);
return
AVERROR
(
EINVAL
);
}
av_freep
(
&
life
->
rate
);
if
(
!
life
->
size
&&
!
life
->
filename
)
av_opt_set
(
life
,
"size"
,
"320x240"
,
0
);
...
...
@@ -252,6 +254,7 @@ static int init(AVFilterContext *ctx, const char *args, void *opaque)
av_log
(
ctx
,
AV_LOG_ERROR
,
"Invalid frame size: %s
\n
"
,
life
->
size
);
return
ret
;
}
av_freep
(
&
life
->
size
);
if
((
ret
=
parse_rule
(
&
life
->
born_rule
,
&
life
->
stay_rule
,
life
->
rule_str
,
ctx
))
<
0
)
return
ret
;
...
...
@@ -262,6 +265,7 @@ static int init(AVFilterContext *ctx, const char *args, void *opaque)
life->name ## _color_str); \
return ret; \
} \
av_freep(&life->name ## _color_str); \
} while (0)
PARSE_COLOR
(
life
);
...
...
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