Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Greer <justin@zencoder.com>2015-10-08 23:26:20 +0300
committerPaul B Mahol <onemda@gmail.com>2015-10-09 00:09:25 +0300
commit9c168f9a224048b19e62fa5e1a05e897554e43b8 (patch)
treea1985448dede1bcef6726abd4eef2d97e49877f2 /libavfilter/af_afade.c
parent079d553b9e61b839744fb2688bc842f341f1501e (diff)
avfilter/af_afade: fix start of fade out
Fixes #4919
Diffstat (limited to 'libavfilter/af_afade.c')
-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)) {