summaryrefslogtreecommitdiff
path: root/libavfilter/af_apad.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-03-15 16:13:53 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-03-15 16:13:53 +0100
commitcd5f50a255321a6917f7a465cd1159fe4fc4948e (patch)
tree2c9058c6caaac9774139ea0a8c2ffea49eb86c44 /libavfilter/af_apad.c
parent64308941d4043388a16c2d2fd51c792cfdcc2734 (diff)
downloadffmpeg-cd5f50a255321a6917f7a465cd1159fe4fc4948e.tar.gz
avfilter: avoid direct access to AVFrame.channels
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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;