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>
This commit is contained in:
Michael Niedermayer 2015-01-01 02:30:16 +01:00
parent 3eb5cbe0c5
commit 18802bc81c

View 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;
}