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
defb960a
Commit
defb960a
authored
May 21, 2016
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/af_loudnorm: fix crash when ebur128 initialization was not successfull/complete
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
4da4bfcd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
af_loudnorm.c
libavfilter/af_loudnorm.c
+8
-2
No files found.
libavfilter/af_loudnorm.c
View file @
defb960a
...
...
@@ -789,6 +789,9 @@ static av_cold void uninit(AVFilterContext *ctx)
double
i_in
,
i_out
,
lra_in
,
lra_out
,
thresh_in
,
thresh_out
,
tp_in
,
tp_out
;
int
c
;
if
(
!
s
->
r128_in
||
!
s
->
r128_out
)
goto
end
;
ebur128_loudness_range
(
s
->
r128_in
,
&
lra_in
);
ebur128_loudness_global
(
s
->
r128_in
,
&
i_in
);
ebur128_relative_threshold
(
s
->
r128_in
,
&
thresh_in
);
...
...
@@ -869,8 +872,11 @@ static av_cold void uninit(AVFilterContext *ctx)
break
;
}
ebur128_destroy
(
&
s
->
r128_in
);
ebur128_destroy
(
&
s
->
r128_out
);
end:
if
(
s
->
r128_in
)
ebur128_destroy
(
&
s
->
r128_in
);
if
(
s
->
r128_out
)
ebur128_destroy
(
&
s
->
r128_out
);
av_freep
(
&
s
->
limiter_buf
);
av_freep
(
&
s
->
prev_smp
);
av_freep
(
&
s
->
buf
);
...
...
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