|
|
|
@@ -171,17 +171,16 @@ static int request_frame(AVFilterLink *link) |
|
|
|
{ |
|
|
|
AVFilterContext *ctx = link->src; |
|
|
|
ThumbContext *s = ctx->priv; |
|
|
|
int ret = ff_request_frame(ctx->inputs[0]); |
|
|
|
|
|
|
|
/* TODO reindent */ |
|
|
|
int ret = ff_request_frame(ctx->inputs[0]); |
|
|
|
if (ret == AVERROR_EOF && s->n) { |
|
|
|
ret = ff_filter_frame(link, get_best_frame(ctx)); |
|
|
|
if (ret < 0) |
|
|
|
return ret; |
|
|
|
ret = AVERROR_EOF; |
|
|
|
} |
|
|
|
if (ret == AVERROR_EOF && s->n) { |
|
|
|
ret = ff_filter_frame(link, get_best_frame(ctx)); |
|
|
|
if (ret < 0) |
|
|
|
return ret; |
|
|
|
ret = AVERROR_EOF; |
|
|
|
} |
|
|
|
if (ret < 0) |
|
|
|
return ret; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
|
|
|
|
|