ffmpeg | branch: master | Martin Vignali <martin.vign...@gmail.com> | Fri Mar 30 21:15:56 2018 +0200| [25b22666a3c05ae15a5d6cc3b0be5c8b034f00f6] | committer: Paul B Mahol
avfilter/showvolume : calculate fade only if fade < 1. > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=25b22666a3c05ae15a5d6cc3b0be5c8b034f00f6 --- libavfilter/avf_showvolume.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavfilter/avf_showvolume.c b/libavfilter/avf_showvolume.c index ab1fb619b9..db16733202 100644 --- a/libavfilter/avf_showvolume.c +++ b/libavfilter/avf_showvolume.c @@ -273,6 +273,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples) } s->out->pts = insamples->pts; + if (s->f < 1.) { for (j = 0; j < outlink->h; j++) { uint8_t *dst = s->out->data[0] + j * s->out->linesize[0]; const uint32_t alpha = s->bgopacity * 255; @@ -284,6 +285,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples) dst[k * 4 + 3] = FFMAX(dst[k * 4 + 3] * s->f, alpha); } } + } if (s->orientation) { /* vertical */ for (c = 0; c < inlink->channels; c++) { _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog