aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Greer <justin@zencoder.com>2015-10-08 15:26:20 -0500
committerPaul B Mahol <onemda@gmail.com>2015-10-08 23:09:25 +0200
commit9c168f9a224048b19e62fa5e1a05e897554e43b8 (patch)
treea1985448dede1bcef6726abd4eef2d97e49877f2
parent079d553b9e61b839744fb2688bc842f341f1501e (diff)
downloadffmpeg-9c168f9a224048b19e62fa5e1a05e897554e43b8.tar.gz
avfilter/af_afade: fix start of fade out
Fixes #4919
-rw-r--r--libavfilter/af_afade.c2
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)) {