summaryrefslogtreecommitdiff
path: root/libavfilter/af_apad.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavfilter/af_apad.c')
-rw-r--r--libavfilter/af_apad.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_apad.c b/libavfilter/af_apad.c
index b3a4b95e81..b4a0fc8509 100644
--- a/libavfilter/af_apad.c
+++ b/libavfilter/af_apad.c
@@ -122,7 +122,7 @@ static int request_frame(AVFilterLink *outlink)
av_samples_set_silence(outsamplesref->extended_data, 0,
n_out,
- outsamplesref->channels,
+ av_frame_get_channels(outsamplesref),
outsamplesref->format);
outsamplesref->pts = apad->next_pts;