mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
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.
This commit is contained in:
parent
65b284a4ae
commit
d4de6d4fad
@ -281,8 +281,6 @@ static int request_frame(AVFilterLink *outlink)
|
|||||||
ret = ff_request_frame(inlink);
|
ret = ff_request_frame(inlink);
|
||||||
} while (!s->req_fullfilled && ret >= 0);
|
} while (!s->req_fullfilled && ret >= 0);
|
||||||
|
|
||||||
if (ret == AVERROR_EOF && s->outpicref)
|
|
||||||
push_frame(outlink);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user