aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/af_stereotools.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2015-10-06 09:50:30 +0200
committerPaul B Mahol <onemda@gmail.com>2015-10-06 09:54:45 +0200
commit755242b9121331af71caf8b47517335c388d8511 (patch)
treebf4419765da674324a88395cef3c1e822dac134a /libavfilter/af_stereotools.c
parentd1c8368e403124aeea0e51607b11c199e8eaf0ff (diff)
downloadffmpeg-755242b9121331af71caf8b47517335c388d8511.tar.gz
avfilter:audio: fix shadowed AVFrame *out
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/af_stereotools.c')
-rw-r--r--libavfilter/af_stereotools.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/af_stereotools.c b/libavfilter/af_stereotools.c
index f4030b7c4e..6a3265d631 100644
--- a/libavfilter/af_stereotools.c
+++ b/libavfilter/af_stereotools.c
@@ -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_r = floor(s->phase_r + 0.5);
double *buffer = s->buffer;
- AVFrame *out = NULL;
+ AVFrame *out;
double *dst;
int nbuf = inlink->sample_rate * (FFABS(delay) / 1000.);
int n;
@@ -154,7 +154,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
if (av_frame_is_writable(in)) {
out = in;
} else {
- AVFrame *out = ff_get_audio_buffer(inlink, in->nb_samples);
+ out = ff_get_audio_buffer(inlink, in->nb_samples);
if (!out) {
av_frame_free(&in);
return AVERROR(ENOMEM);