videorec: Fix flushing encoders
When passing NULL frames, encoders empty their queues, but we have
to stop polling from them when they don't any more data.
void fpcrtl_halt(int num) { __coverity_panic__();}int fpcrtl_abs(int num) { return num >= 0 ? num : -num;}