Browse code

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>

Michael Niedermayer authored on 2015/01/01 10:30:16
Showing 1 changed files
... ...
@@ -285,7 +285,7 @@ static int request_frame(AVFilterLink *link)
285 285
         } else if (ret < 0) {
286 286
             return ret;
287 287
         }
288
-    } while (!idet->prev);
288
+    } while (link->frame_requested);
289 289
 
290 290
     return 0;
291 291
 }