summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-01 02:30:16 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-01-01 02:30:16 +0100
commit18802bc81ce8f6fe667f33e680990676a3407609 (patch)
tree9717b24feb92d53944073e683d5ef189ed1853cc
parent3eb5cbe0c50d0a0bbe10bcabbd6b16d73d93c128 (diff)
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>
-rw-r--r--libavfilter/vf_idet.c2
1 files changed, 1 insertions, 1 deletions
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;
}