aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/af_sidechaincompress.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2018-01-03 22:47:40 +0100
committerPaul B Mahol <onemda@gmail.com>2018-01-03 22:52:47 +0100
commit88cbd25b193dddb852bc1921b733c5dde5fee2fe (patch)
tree4e92b70448f964296c7e91590dc2d74116330c3f /libavfilter/af_sidechaincompress.c
parent677701c6b319d2d3b95a27179fde6ec2a863bf72 (diff)
downloadffmpeg-88cbd25b193dddb852bc1921b733c5dde5fee2fe.tar.gz
avfilter: pass outlink to ff_get_audio_buffer()
This is more correct. Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/af_sidechaincompress.c')
-rw-r--r--libavfilter/af_sidechaincompress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_sidechaincompress.c b/libavfilter/af_sidechaincompress.c
index 3c6458cd63..888049eaf0 100644
--- a/libavfilter/af_sidechaincompress.c
+++ b/libavfilter/af_sidechaincompress.c
@@ -367,7 +367,7 @@ static int acompressor_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);