diff options
author | Paul B Mahol <onemda@gmail.com> | 2018-01-01 21:53:10 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2018-01-01 21:57:06 +0100 |
commit | 9f7dbaad7e36e11237ab76ed5e1932af7dfd2df2 (patch) | |
tree | 167ee9eea80fbd85830b5f94eab3fcbcb4e7664e | |
parent | fdbd26196702120561a6a9b32928443b04fcbd11 (diff) | |
download | ffmpeg-9f7dbaad7e36e11237ab76ed5e1932af7dfd2df2.tar.gz |
avfilter/af_crystalizer: use outlink instead of inlink
Doesn't change anything but is more correct.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavfilter/af_crystalizer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/af_crystalizer.c b/libavfilter/af_crystalizer.c index dec30aa5f4..5b27e1fb79 100644 --- a/libavfilter/af_crystalizer.c +++ b/libavfilter/af_crystalizer.c @@ -173,7 +173,7 @@ static void filter_dblp(void **d, void **p, const void **s, static int config_input(AVFilterLink *inlink) { AVFilterContext *ctx = inlink->dst; - CrystalizerContext *s = ctx->priv; + CrystalizerContext *s = ctx->priv; switch (inlink->format) { case AV_SAMPLE_FMT_FLT: s->filter = filter_flt; break; @@ -203,7 +203,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) if (av_frame_is_writable(in)) { out = in; } else { - out = ff_get_audio_buffer(inlink, in->nb_samples); + out = ff_get_audio_buffer(outlink, in->nb_samples); if (!out) { av_frame_free(&in); return AVERROR(ENOMEM); |