Reorder arguments for av_fifo_generic_read to be more logical and