From 18802bc81ce8f6fe667f33e680990676a3407609 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer <michaelni@gmx.at> Date: Thu, 1 Jan 2015 02:30:16 +0100 Subject: avfilter/vf_idet: Use frame_requested instead of prev This is more robust if the delay is not constant Signed-off-by: Michael Niedermayer <michaelni@gmx.at> --- libavfilter/vf_idet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_idet.c b/libavfilter/vf_idet.c index 9a25042a89..7227a40d6f 100644 --- a/libavfilter/vf_idet.c +++ b/libavfilter/vf_idet.c @@ -285,7 +285,7 @@ static int request_frame(AVFilterLink *link) } else if (ret < 0) { return ret; } - } while (!idet->prev); + } while (link->frame_requested); return 0; } -- cgit v1.2.3