Browse Source

avfilter/af_afade: fix start of fade out

Fixes #4919
tags/n3.0
Justin Greer Paul B Mahol 9 years ago
parent
commit
9c168f9a22
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/af_afade.c

+ 1
- 1
libavfilter/af_afade.c View File

@@ -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)) {


Loading…
Cancel
Save