diff options
author | Paul B Mahol <onemda@gmail.com> | 2015-10-06 10:50:30 +0300 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2015-10-06 10:54:45 +0300 |
commit | 755242b9121331af71caf8b47517335c388d8511 (patch) | |
tree | bf4419765da674324a88395cef3c1e822dac134a /libavfilter/af_agate.c | |
parent | d1c8368e403124aeea0e51607b11c199e8eaf0ff (diff) |
avfilter:audio: fix shadowed AVFrame *out
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/af_agate.c')
-rw-r--r-- | libavfilter/af_agate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/af_agate.c b/libavfilter/af_agate.c index 46ee226235..7781a9ca56 100644 --- a/libavfilter/af_agate.c +++ b/libavfilter/af_agate.c @@ -158,14 +158,14 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) const double attack_coeff = s->attack_coeff; const double release_coeff = s->release_coeff; const double level_in = s->level_in; - AVFrame *out = NULL; + AVFrame *out; double *dst; int n, c; 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); |