fixes top quality detection for BufferExtensions.getRequiredBufferLength