Commit 7635242a authored by Nicolas George's avatar Nicolas George

lavfi/vf_idet: remove the loop in request_frame().

It is not necessary due to the use of FF_LINK_FLAG_REQUEST_LOOP.
parent 807d4b63
...@@ -314,7 +314,7 @@ static int request_frame(AVFilterLink *link) ...@@ -314,7 +314,7 @@ static int request_frame(AVFilterLink *link)
AVFilterContext *ctx = link->src; AVFilterContext *ctx = link->src;
IDETContext *idet = ctx->priv; IDETContext *idet = ctx->priv;
do { // TODO reindent
int ret; int ret;
if (idet->eof) if (idet->eof)
...@@ -328,14 +328,11 @@ static int request_frame(AVFilterLink *link) ...@@ -328,14 +328,11 @@ static int request_frame(AVFilterLink *link)
if (!next) if (!next)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
filter_frame(link->src->inputs[0], next); ret = filter_frame(link->src->inputs[0], next);
idet->eof = 1; idet->eof = 1;
} else if (ret < 0) {
return ret;
} }
} while (link->frame_requested);
return 0; return ret;
} }
static av_cold void uninit(AVFilterContext *ctx) static av_cold void uninit(AVFilterContext *ctx)
......
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