diff options
author | Nicolas George <george@nsup.org> | 2015-10-02 15:54:41 +0200 |
---|---|---|
committer | Nicolas George <george@nsup.org> | 2015-10-07 19:05:13 +0200 |
commit | 4883e5d54012e76d47d6781b2178de53afdea8f6 (patch) | |
tree | 9d1dfb27df053963e13fb197c443fe981d0ba98b | |
parent | 86b8a82f4f9c181189bf4309e67544caf233ad54 (diff) | |
download | ffmpeg-4883e5d54012e76d47d6781b2178de53afdea8f6.tar.gz |
lavfi/vf_yadif: remove looping on request_frame().
-rw-r--r-- | libavfilter/vf_yadif.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libavfilter/vf_yadif.c b/libavfilter/vf_yadif.c index d7a2b53bce..c32c06592a 100644 --- a/libavfilter/vf_yadif.c +++ b/libavfilter/vf_yadif.c @@ -379,15 +379,15 @@ static int request_frame(AVFilterLink *link) { AVFilterContext *ctx = link->src; YADIFContext *yadif = ctx->priv; + int ret; if (yadif->frame_pending) { return_frame(ctx, 1); return 0; } - do { - int ret; + /* TODO reindent */ if (yadif->eof) return AVERROR_EOF; @@ -406,7 +406,6 @@ static int request_frame(AVFilterLink *link) } else if (ret < 0) { return ret; } - } while (!yadif->prev); return 0; } |