diff options
author | Nicolas George <george@nsup.org> | 2014-08-03 16:40:54 +0200 |
---|---|---|
committer | Nicolas George <george@nsup.org> | 2014-08-14 14:23:59 +0200 |
commit | d4de6d4fadcc70fb96ba0f3793e7ebaf4ddc3da9 (patch) | |
tree | c363bf7432b29c2efda32a20d7084d4771dd2d81 | |
parent | 65b284a4aef68fc88c80d970a41339113293dc18 (diff) | |
download | ffmpeg-d4de6d4fadcc70fb96ba0f3793e7ebaf4ddc3da9.tar.gz |
lavfi/avf_showspectrum: do not push the frame at EOF.
It is always identical to the last pushed frame.
The samples in the last incomplete window were ignored,
this is unchanged.
Possible enhancement: pad the last incomplete window with
silence.
-rw-r--r-- | libavfilter/avf_showspectrum.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libavfilter/avf_showspectrum.c b/libavfilter/avf_showspectrum.c index 28db8b1009..e92555627d 100644 --- a/libavfilter/avf_showspectrum.c +++ b/libavfilter/avf_showspectrum.c @@ -281,8 +281,6 @@ static int request_frame(AVFilterLink *outlink) ret = ff_request_frame(inlink); } while (!s->req_fullfilled && ret >= 0); - if (ret == AVERROR_EOF && s->outpicref) - push_frame(outlink); return ret; } |