summaryrefslogtreecommitdiff
path: root/libavfilter/af_afade.c
diff options
context:
space:
mode:
authorMuhammad Faiz <mfcc64@gmail.com>2017-04-22 15:57:18 +0700
committerMuhammad Faiz <mfcc64@gmail.com>2017-04-23 14:40:30 +0700
commit6af050d7d0c3c73f3d62115152db82ebd2dc5d57 (patch)
treed1c7b6d4711dc095cab3f135f5c6433b4474364a /libavfilter/af_afade.c
parent8103c595223613c08e44bcf56ae7098d3c31be8b (diff)
avfilter: do not use AVFrame accessor
Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
Diffstat (limited to 'libavfilter/af_afade.c')
-rw-r--r--libavfilter/af_afade.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavfilter/af_afade.c b/libavfilter/af_afade.c
index 9acadc51c5..3a6266f0cd 100644
--- a/libavfilter/af_afade.c
+++ b/libavfilter/af_afade.c
@@ -291,7 +291,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
if ((!s->type && (cur_sample + nb_samples < s->start_sample)) ||
( s->type && (s->start_sample + s->nb_samples < cur_sample))) {
av_samples_set_silence(out_buf->extended_data, 0, nb_samples,
- av_frame_get_channels(out_buf), out_buf->format);
+ out_buf->channels, out_buf->format);
} else {
int64_t start;
@@ -301,7 +301,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
start = s->start_sample + s->nb_samples - cur_sample;
s->fade_samples(out_buf->extended_data, buf->extended_data,
- nb_samples, av_frame_get_channels(buf),
+ nb_samples, buf->channels,
s->type ? -1 : 1, start,
s->nb_samples, s->curve);
}
@@ -498,7 +498,7 @@ static int acrossfade_filter_frame(AVFilterLink *inlink, AVFrame *in)
s->crossfade_samples(out->extended_data, cf[0]->extended_data,
cf[1]->extended_data,
- s->nb_samples, av_frame_get_channels(in),
+ s->nb_samples, in->channels,
s->curve, s->curve2);
out->pts = s->pts;
s->pts += av_rescale_q(s->nb_samples,