prevent desynch by processing as many frames per read as possible