diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-03-15 16:13:53 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-03-15 16:13:53 +0100 |
commit | cd5f50a255321a6917f7a465cd1159fe4fc4948e (patch) | |
tree | 2c9058c6caaac9774139ea0a8c2ffea49eb86c44 /libavfilter/af_afade.c | |
parent | 64308941d4043388a16c2d2fd51c792cfdcc2734 (diff) | |
download | ffmpeg-cd5f50a255321a6917f7a465cd1159fe4fc4948e.tar.gz |
avfilter: avoid direct access to AVFrame.channels
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/af_afade.c')
-rw-r--r-- | libavfilter/af_afade.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/af_afade.c b/libavfilter/af_afade.c index 0e660a3f4c..1134849282 100644 --- a/libavfilter/af_afade.c +++ b/libavfilter/af_afade.c @@ -256,7 +256,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf) if ((!afade->type && (cur_sample + nb_samples < afade->start_sample)) || ( afade->type && (afade->start_sample + afade->nb_samples < cur_sample))) { av_samples_set_silence(out_buf->extended_data, 0, nb_samples, - out_buf->channels, out_buf->format); + av_frame_get_channels(out_buf), out_buf->format); } else { int64_t start; @@ -266,7 +266,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf) start = afade->start_sample + afade->nb_samples - cur_sample; afade->fade_samples(out_buf->extended_data, buf->extended_data, - nb_samples, buf->channels, + nb_samples, av_frame_get_channels(buf), afade->type ? -1 : 1, start, afade->nb_samples, afade->curve); } |