summaryrefslogtreecommitdiff
path: root/libavfilter/audio.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-03-10 11:20:07 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-03-10 11:25:54 +0100
commitf963c77856d2999b07dca49134e5f5de185d3147 (patch)
treee4c96ed3e03bdff339d5fed3d7240a61f29e42db /libavfilter/audio.c
parent91b747ac78218805a79435f50587f87167569dad (diff)
downloadffmpeg-f963c77856d2999b07dca49134e5f5de185d3147.tar.gz
avfilter: avoid direct access to "frame"->channels
This avoids ABI issues Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/audio.c')
-rw-r--r--libavfilter/audio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/audio.c b/libavfilter/audio.c
index b5a9f789f6..1075217fe0 100644
--- a/libavfilter/audio.c
+++ b/libavfilter/audio.c
@@ -69,7 +69,7 @@ AVFrame *ff_default_get_audio_buffer(AVFilterLink *link, int nb_samples)
frame->nb_samples = nb_samples;
frame->format = link->format;
- frame->channels = link->channels;
+ av_frame_set_channels(frame, link->channels);
frame->channel_layout = link->channel_layout;
frame->sample_rate = link->sample_rate;