diff options
author | Justin Greer <justin@zencoder.com> | 2015-10-08 15:26:20 -0500 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2015-10-08 23:09:25 +0200 |
commit | 9c168f9a224048b19e62fa5e1a05e897554e43b8 (patch) | |
tree | a1985448dede1bcef6726abd4eef2d97e49877f2 | |
parent | 079d553b9e61b839744fb2688bc842f341f1501e (diff) | |
download | ffmpeg-9c168f9a224048b19e62fa5e1a05e897554e43b8.tar.gz |
avfilter/af_afade: fix start of fade out
Fixes #4919
-rw-r--r-- | libavfilter/af_afade.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_afade.c b/libavfilter/af_afade.c index 2f1822203d..7bc7eb3a2b 100644 --- a/libavfilter/af_afade.c +++ b/libavfilter/af_afade.c @@ -272,7 +272,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf) int64_t cur_sample = av_rescale_q(buf->pts, inlink->time_base, (AVRational){1, inlink->sample_rate}); if ((!s->type && (s->start_sample + s->nb_samples < cur_sample)) || - ( s->type && (cur_sample + s->nb_samples < s->start_sample))) + ( s->type && (cur_sample + nb_samples < s->start_sample))) return ff_filter_frame(outlink, buf); if (av_frame_is_writable(buf)) { |