You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
lavfi/vf_yadif: remove looping on request_frame().
This commit is contained in:
@@ -379,15 +379,15 @@ static int request_frame(AVFilterLink *link)
|
|||||||
{
|
{
|
||||||
AVFilterContext *ctx = link->src;
|
AVFilterContext *ctx = link->src;
|
||||||
YADIFContext *yadif = ctx->priv;
|
YADIFContext *yadif = ctx->priv;
|
||||||
|
int ret;
|
||||||
|
|
||||||
if (yadif->frame_pending) {
|
if (yadif->frame_pending) {
|
||||||
return_frame(ctx, 1);
|
return_frame(ctx, 1);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
do {
|
|
||||||
int ret;
|
|
||||||
|
|
||||||
|
/* TODO reindent */
|
||||||
if (yadif->eof)
|
if (yadif->eof)
|
||||||
return AVERROR_EOF;
|
return AVERROR_EOF;
|
||||||
|
|
||||||
@@ -406,7 +406,6 @@ static int request_frame(AVFilterLink *link)
|
|||||||
} else if (ret < 0) {
|
} else if (ret < 0) {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
} while (!yadif->prev);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user