mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
lavfi/avf_showspectrum: reindent after last commit.
This commit is contained in:
parent
4883e5d540
commit
35c3043ea4
@ -267,18 +267,17 @@ static int request_frame(AVFilterLink *outlink)
|
||||
unsigned i;
|
||||
int ret;
|
||||
|
||||
/* TODO reindent */
|
||||
ret = ff_request_frame(inlink);
|
||||
if (ret == AVERROR_EOF && s->sliding == FULLFRAME && s->xpos > 0 &&
|
||||
s->outpicref) {
|
||||
for (i = 0; i < outlink->h; i++) {
|
||||
memset(s->outpicref->data[0] + i * s->outpicref->linesize[0] + s->xpos, 0, outlink->w - s->xpos);
|
||||
memset(s->outpicref->data[1] + i * s->outpicref->linesize[1] + s->xpos, 128, outlink->w - s->xpos);
|
||||
memset(s->outpicref->data[2] + i * s->outpicref->linesize[2] + s->xpos, 128, outlink->w - s->xpos);
|
||||
}
|
||||
ret = ff_filter_frame(outlink, s->outpicref);
|
||||
s->outpicref = NULL;
|
||||
ret = ff_request_frame(inlink);
|
||||
if (ret == AVERROR_EOF && s->sliding == FULLFRAME && s->xpos > 0 &&
|
||||
s->outpicref) {
|
||||
for (i = 0; i < outlink->h; i++) {
|
||||
memset(s->outpicref->data[0] + i * s->outpicref->linesize[0] + s->xpos, 0, outlink->w - s->xpos);
|
||||
memset(s->outpicref->data[1] + i * s->outpicref->linesize[1] + s->xpos, 128, outlink->w - s->xpos);
|
||||
memset(s->outpicref->data[2] + i * s->outpicref->linesize[2] + s->xpos, 128, outlink->w - s->xpos);
|
||||
}
|
||||
ret = ff_filter_frame(outlink, s->outpicref);
|
||||
s->outpicref = NULL;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user