fix incomplete buffers fix buffer underflows fix read next frame error