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
60c950ac
Commit
60c950ac
authored
May 22, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwt: use av_freep()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
ea5dab58
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
dwt.c
libavcodec/dwt.c
+4
-4
No files found.
libavcodec/dwt.c
View file @
60c950ac
...
@@ -39,7 +39,7 @@ void ff_slice_buffer_init(slice_buffer *buf, int line_count,
...
@@ -39,7 +39,7 @@ void ff_slice_buffer_init(slice_buffer *buf, int line_count,
return
AVERROR
(
ENOMEM
);
return
AVERROR
(
ENOMEM
);
buf
->
data_stack
=
av_malloc
(
sizeof
(
IDWTELEM
*
)
*
max_allocated_lines
);
buf
->
data_stack
=
av_malloc
(
sizeof
(
IDWTELEM
*
)
*
max_allocated_lines
);
if
(
!
buf
->
data_stack
)
{
if
(
!
buf
->
data_stack
)
{
av_free
(
buf
->
line
);
av_free
p
(
&
buf
->
line
);
return
AVERROR
(
ENOMEM
);
return
AVERROR
(
ENOMEM
);
}
}
...
@@ -47,9 +47,9 @@ void ff_slice_buffer_init(slice_buffer *buf, int line_count,
...
@@ -47,9 +47,9 @@ void ff_slice_buffer_init(slice_buffer *buf, int line_count,
buf
->
data_stack
[
i
]
=
av_malloc
(
sizeof
(
IDWTELEM
)
*
line_width
);
buf
->
data_stack
[
i
]
=
av_malloc
(
sizeof
(
IDWTELEM
)
*
line_width
);
if
(
!
buf
->
data_stack
[
i
])
{
if
(
!
buf
->
data_stack
[
i
])
{
for
(
i
--
;
i
>=
0
;
i
--
)
for
(
i
--
;
i
>=
0
;
i
--
)
av_free
(
buf
->
data_stack
[
i
]);
av_free
p
(
&
buf
->
data_stack
[
i
]);
av_free
(
buf
->
data_stack
);
av_free
p
(
&
buf
->
data_stack
);
av_free
(
buf
->
line
);
av_free
p
(
&
buf
->
line
);
return
AVERROR
(
ENOMEM
);
return
AVERROR
(
ENOMEM
);
}
}
}
}
...
...
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