[FFmpeg-cvslog] avfilter/af_afade: fix start of fade out
Justin Greer
git at videolan.org
Thu Oct 8 23:11:46 CEST 2015
ffmpeg | branch: master | Justin Greer <justin at zencoder.com> | Thu Oct 8 15:26:20 2015 -0500| [9c168f9a224048b19e62fa5e1a05e897554e43b8] | committer: Paul B Mahol
avfilter/af_afade: fix start of fade out
Fixes #4919
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9c168f9a224048b19e62fa5e1a05e897554e43b8
---
libavfilter/af_afade.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/af_afade.c b/libavfilter/af_afade.c
index 2f18222..7bc7eb3 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)) {
More information about the ffmpeg-cvslog
mailing list