Browse Source

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.
tags/n2.4
Nicolas George 11 years ago
parent
commit
d4de6d4fad
1 changed files with 0 additions and 2 deletions
  1. +0
    -2
      libavfilter/avf_showspectrum.c

+ 0
- 2
libavfilter/avf_showspectrum.c View 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;
}



Loading…
Cancel
Save