lavfi: add helpers to consume frames from link FIFOs.