avfilter/vf_idet: Use frame_requested instead of prev
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 1 Jan 2015 01:30:16 +0000 (02:30 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 1 Jan 2015 01:30:16 +0000 (02:30 +0100)
This is more robust if the delay is not constant

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_idet.c

index 9a25042..7227a40 100644 (file)
@@ -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;
 }