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>
pull/101/head
Michael Niedermayer 10 years ago
parent 3eb5cbe0c5
commit 18802bc81c
  1. 2
      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;
}

Loading…
Cancel
Save