From cd5f50a255321a6917f7a465cd1159fe4fc4948e Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 15 Mar 2013 16:13:53 +0100 Subject: avfilter: avoid direct access to AVFrame.channels Signed-off-by: Michael Niedermayer --- libavfilter/af_apad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavfilter/af_apad.c') diff --git a/libavfilter/af_apad.c b/libavfilter/af_apad.c index b3a4b95..b4a0fc8 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; -- cgit v1.1