Commit 598f8a7a authored by Nicolas George's avatar Nicolas George

lavfi/vf_idet: reindent after last commit.

parent 7635242a
...@@ -313,24 +313,22 @@ static int request_frame(AVFilterLink *link) ...@@ -313,24 +313,22 @@ static int request_frame(AVFilterLink *link)
{ {
AVFilterContext *ctx = link->src; AVFilterContext *ctx = link->src;
IDETContext *idet = ctx->priv; IDETContext *idet = ctx->priv;
int ret;
// TODO reindent if (idet->eof)
int ret; return AVERROR_EOF;
if (idet->eof) ret = ff_request_frame(link->src->inputs[0]);
return AVERROR_EOF;
ret = ff_request_frame(link->src->inputs[0]); if (ret == AVERROR_EOF && idet->cur && !idet->analyze_interlaced_flag_done) {
AVFrame *next = av_frame_clone(idet->next);
if (ret == AVERROR_EOF && idet->cur && !idet->analyze_interlaced_flag_done) { if (!next)
AVFrame *next = av_frame_clone(idet->next); return AVERROR(ENOMEM);
if (!next) ret = filter_frame(link->src->inputs[0], next);
return AVERROR(ENOMEM); idet->eof = 1;
}
ret = filter_frame(link->src->inputs[0], next);
idet->eof = 1;
}
return ret; return ret;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment