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
755242b9
Commit
755242b9
authored
Oct 06, 2015
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter:audio: fix shadowed AVFrame *out
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
d1c8368e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
af_agate.c
libavfilter/af_agate.c
+2
-2
af_stereotools.c
libavfilter/af_stereotools.c
+2
-2
af_stereowiden.c
libavfilter/af_stereowiden.c
+2
-2
No files found.
libavfilter/af_agate.c
View file @
755242b9
...
@@ -158,14 +158,14 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
...
@@ -158,14 +158,14 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
const
double
attack_coeff
=
s
->
attack_coeff
;
const
double
attack_coeff
=
s
->
attack_coeff
;
const
double
release_coeff
=
s
->
release_coeff
;
const
double
release_coeff
=
s
->
release_coeff
;
const
double
level_in
=
s
->
level_in
;
const
double
level_in
=
s
->
level_in
;
AVFrame
*
out
=
NULL
;
AVFrame
*
out
;
double
*
dst
;
double
*
dst
;
int
n
,
c
;
int
n
,
c
;
if
(
av_frame_is_writable
(
in
))
{
if
(
av_frame_is_writable
(
in
))
{
out
=
in
;
out
=
in
;
}
else
{
}
else
{
AVFrame
*
out
=
ff_get_audio_buffer
(
inlink
,
in
->
nb_samples
);
out
=
ff_get_audio_buffer
(
inlink
,
in
->
nb_samples
);
if
(
!
out
)
{
if
(
!
out
)
{
av_frame_free
(
&
in
);
av_frame_free
(
&
in
);
return
AVERROR
(
ENOMEM
);
return
AVERROR
(
ENOMEM
);
...
...
libavfilter/af_stereotools.c
View file @
755242b9
...
@@ -145,7 +145,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
...
@@ -145,7 +145,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
const
int
phase_l
=
floor
(
s
->
phase_l
+
0
.
5
);
const
int
phase_l
=
floor
(
s
->
phase_l
+
0
.
5
);
const
int
phase_r
=
floor
(
s
->
phase_r
+
0
.
5
);
const
int
phase_r
=
floor
(
s
->
phase_r
+
0
.
5
);
double
*
buffer
=
s
->
buffer
;
double
*
buffer
=
s
->
buffer
;
AVFrame
*
out
=
NULL
;
AVFrame
*
out
;
double
*
dst
;
double
*
dst
;
int
nbuf
=
inlink
->
sample_rate
*
(
FFABS
(
delay
)
/
1000
.);
int
nbuf
=
inlink
->
sample_rate
*
(
FFABS
(
delay
)
/
1000
.);
int
n
;
int
n
;
...
@@ -154,7 +154,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
...
@@ -154,7 +154,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
if
(
av_frame_is_writable
(
in
))
{
if
(
av_frame_is_writable
(
in
))
{
out
=
in
;
out
=
in
;
}
else
{
}
else
{
AVFrame
*
out
=
ff_get_audio_buffer
(
inlink
,
in
->
nb_samples
);
out
=
ff_get_audio_buffer
(
inlink
,
in
->
nb_samples
);
if
(
!
out
)
{
if
(
!
out
)
{
av_frame_free
(
&
in
);
av_frame_free
(
&
in
);
return
AVERROR
(
ENOMEM
);
return
AVERROR
(
ENOMEM
);
...
...
libavfilter/af_stereowiden.c
View file @
755242b9
...
@@ -90,14 +90,14 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
...
@@ -90,14 +90,14 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
const
float
drymix
=
s
->
drymix
;
const
float
drymix
=
s
->
drymix
;
const
float
crossfeed
=
s
->
crossfeed
;
const
float
crossfeed
=
s
->
crossfeed
;
const
float
feedback
=
s
->
feedback
;
const
float
feedback
=
s
->
feedback
;
AVFrame
*
out
=
NULL
;
AVFrame
*
out
;
float
*
dst
;
float
*
dst
;
int
n
;
int
n
;
if
(
av_frame_is_writable
(
in
))
{
if
(
av_frame_is_writable
(
in
))
{
out
=
in
;
out
=
in
;
}
else
{
}
else
{
AVFrame
*
out
=
ff_get_audio_buffer
(
inlink
,
in
->
nb_samples
);
out
=
ff_get_audio_buffer
(
inlink
,
in
->
nb_samples
);
if
(
!
out
)
{
if
(
!
out
)
{
av_frame_free
(
&
in
);
av_frame_free
(
&
in
);
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