[FFmpeg-devel] [PATCH 10/15] lavfi/vf_yadif: remove looping on request_frame().
Nicolas George
george at nsup.org
Fri Oct 2 17:13:21 CEST 2015
Signed-off-by: Nicolas George <george at nsup.org>
---
libavfilter/vf_yadif.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/libavfilter/vf_yadif.c b/libavfilter/vf_yadif.c
index d7a2b53..c32c065 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;
}
--
2.5.3
More information about the ffmpeg-devel
mailing list