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
8f9569cf
Commit
8f9569cf
authored
Dec 13, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_pullup: Factor free_field_queue() out
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
b02d8793
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
13 deletions
+17
-13
vf_pullup.c
libavfilter/vf_pullup.c
+17
-13
No files found.
libavfilter/vf_pullup.c
View file @
8f9569cf
...
@@ -126,6 +126,22 @@ static int alloc_metrics(PullupContext *s, PullupField *f)
...
@@ -126,6 +126,22 @@ static int alloc_metrics(PullupContext *s, PullupField *f)
return
0
;
return
0
;
}
}
static
void
free_field_queue
(
PullupField
*
head
,
PullupField
**
last
)
{
PullupField
*
f
=
head
;
while
(
f
)
{
av_free
(
f
->
diffs
);
av_free
(
f
->
combs
);
av_free
(
f
->
vars
);
if
(
f
==
*
last
)
{
av_freep
(
last
);
break
;
}
f
=
f
->
next
;
av_freep
(
&
f
->
prev
);
};
}
static
PullupField
*
make_field_queue
(
PullupContext
*
s
,
int
len
)
static
PullupField
*
make_field_queue
(
PullupContext
*
s
,
int
len
)
{
{
PullupField
*
head
,
*
f
;
PullupField
*
head
,
*
f
;
...
@@ -714,21 +730,9 @@ end:
...
@@ -714,21 +730,9 @@ end:
static
av_cold
void
uninit
(
AVFilterContext
*
ctx
)
static
av_cold
void
uninit
(
AVFilterContext
*
ctx
)
{
{
PullupContext
*
s
=
ctx
->
priv
;
PullupContext
*
s
=
ctx
->
priv
;
PullupField
*
f
;
int
i
;
int
i
;
f
=
s
->
head
;
free_field_queue
(
s
->
head
,
&
s
->
last
);
while
(
f
)
{
av_free
(
f
->
diffs
);
av_free
(
f
->
combs
);
av_free
(
f
->
vars
);
if
(
f
==
s
->
last
)
{
av_freep
(
&
s
->
last
);
break
;
}
f
=
f
->
next
;
av_freep
(
&
f
->
prev
);
};
for
(
i
=
0
;
i
<
FF_ARRAY_ELEMS
(
s
->
buffers
);
i
++
)
{
for
(
i
=
0
;
i
<
FF_ARRAY_ELEMS
(
s
->
buffers
);
i
++
)
{
av_freep
(
&
s
->
buffers
[
i
].
planes
[
0
]);
av_freep
(
&
s
->
buffers
[
i
].
planes
[
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