diff options
author | Paul B Mahol <onemda@gmail.com> | 2018-01-03 22:47:40 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2018-01-03 22:52:47 +0100 |
commit | 88cbd25b193dddb852bc1921b733c5dde5fee2fe (patch) | |
tree | 4e92b70448f964296c7e91590dc2d74116330c3f /libavfilter/af_compand.c | |
parent | 677701c6b319d2d3b95a27179fde6ec2a863bf72 (diff) | |
download | ffmpeg-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_compand.c')
-rw-r--r-- | libavfilter/af_compand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/af_compand.c b/libavfilter/af_compand.c index 8589b1ef09..c138f0b1d8 100644 --- a/libavfilter/af_compand.c +++ b/libavfilter/af_compand.c @@ -185,7 +185,7 @@ static int compand_nodelay(AVFilterContext *ctx, AVFrame *frame) if (av_frame_is_writable(frame)) { out_frame = frame; } else { - out_frame = ff_get_audio_buffer(inlink, nb_samples); + out_frame = ff_get_audio_buffer(ctx->outputs[0], nb_samples); if (!out_frame) { av_frame_free(&frame); return AVERROR(ENOMEM); @@ -249,7 +249,7 @@ static int compand_delay(AVFilterContext *ctx, AVFrame *frame) if (count >= s->delay_samples) { if (!out_frame) { - out_frame = ff_get_audio_buffer(inlink, nb_samples - i); + out_frame = ff_get_audio_buffer(ctx->outputs[0], nb_samples - i); if (!out_frame) { av_frame_free(&frame); return AVERROR(ENOMEM); |