summaryrefslogtreecommitdiff
path: root/libavfilter/af_pan.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_pan.c
parent64308941d4043388a16c2d2fd51c792cfdcc2734 (diff)
avfilter: avoid direct access to AVFrame.channels
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/af_pan.c')
-rw-r--r--libavfilter/af_pan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_pan.c b/libavfilter/af_pan.c
index 9a3c10c1dc..ae2e0aa481 100644
--- a/libavfilter/af_pan.c
+++ b/libavfilter/af_pan.c
@@ -364,7 +364,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples)
swr_convert(pan->swr, outsamples->data, n, (void *)insamples->data, n);
av_frame_copy_props(outsamples, insamples);
outsamples->channel_layout = outlink->channel_layout;
- outsamples->channels = outlink->channels;
+ av_frame_set_channels(outsamples, outlink->channels);
ret = ff_filter_frame(outlink, outsamples);
av_frame_free(&insamples);