aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/avfilter.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/avfilter.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/avfilter.c')
-rw-r--r--libavfilter/avfilter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 671734350e..ed16c8012a 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -698,7 +698,7 @@ static int ff_filter_frame_needs_framing(AVFilterLink *link, AVFrame *frame)
{
int insamples = frame->nb_samples, inpos = 0, nb_samples;
AVFrame *pbuf = link->partial_buf;
- int nb_channels = frame->channels;
+ int nb_channels = av_frame_get_channels(frame);
int ret = 0;
/* Handle framing (min_samples, max_samples) */
@@ -747,7 +747,7 @@ int ff_filter_frame(AVFilterLink *link, AVFrame *frame)
}
} else {
av_assert1(frame->format == link->format);
- av_assert1(frame->channels == link->channels);
+ av_assert1(av_frame_get_channels(frame) == link->channels);
av_assert1(frame->channel_layout == link->channel_layout);
av_assert1(frame->sample_rate == link->sample_rate);
}