From f963c77856d2999b07dca49134e5f5de185d3147 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 10 Mar 2013 11:20:07 +0100 Subject: avfilter: avoid direct access to "frame"->channels This avoids ABI issues Signed-off-by: Michael Niedermayer --- libavfilter/audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavfilter/audio.c') 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; -- cgit v1.2.3