Implement av_fifo_space().