]> git.sesse.net Git - ffmpeg/commitdiff
lavfi/avf_showspectrum: do not push the frame at EOF.
authorNicolas George <george@nsup.org>
Sun, 3 Aug 2014 14:40:54 +0000 (16:40 +0200)
committerNicolas George <george@nsup.org>
Thu, 14 Aug 2014 12:23:59 +0000 (14:23 +0200)
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.

libavfilter/avf_showspectrum.c

index 28db8b1009aeb43ab7a1b9064be078f671c43ed5..e92555627d69328177d1aa13c581144f64e226f1 100644 (file)
@@ -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;
 }